Hello Can anyone please expand on the whole FCMToken thing. I've been documenting a lot about it but I cannot seem to understand how to notify Firebase that I have an FCMToken on my device and i want to register it on their servers so that i can uniquely identify my device on Firebase servers.
I've been reading a lot here and here about FCMToken in general but most of them sends me to Kotlin or Java code. I haven't found any solution in Typescript code. Can you please provide some leads or plugins / code i can use so that i can move forward with FCMTOken? Thanks
Related
I've implemented an ErrorHandler class into my app which is working just great but as I'm not sure if what I'm doing can fit into "best practices" just would like to share it with you to have your opinion.
My question is silly and my class is very simple. All that I do is the next: in every catch block of my whole java code I do a call to ErrorHabdler.log(e) (which works as an AsyncTask) and as I'm working with AWS what log(e) does is capture all information about the error, like message, device name and model, etc (NO user information) and sends a formatted email with the error to a specific email address.
Another possibility would be to create a new table into my AWS DynamoDB set called Exceptions and instead of sending an email in background write the error log into that new table to have errors more "centralized".
I'd like to know if you consider what I'm actualli doing a good practice, or if you prefer my second choice, or maybe none of them and you would better use a third party error logger.
Best!
There are several Crashlytics tools on the internet.
The best choice is to go to these tools, which make it easier to control crashes reports.
The most common, and is what I use in most of my projects, is Frabric.IO Crashlytics ,: https://fabric.io/kits/android/crashlytics
You can follow these steps to install Crashlytics in your project: https://fabric.io/kits/android/crashlytics/install
Can we send emails within android using firebase , i have tried several libraries like GmailBackground,BackgroundMail, custom method of Javax to send mail , but unable to send any email ,not even a simple one.
So I wonder if Firebase give such a feature , it would be great ?
Firebase Email Sending Blog post is showing empty is i think deleted , but why?
if you have any working source or tutorial to sent an email with attachment , it would be great , thanks
I've been researching this all day...
Option with third-party: SendGrid.com
There's actually a blog post by Tyson Bailey where he explains how he managed to get that done using SendGrid.com (monthly fee) here:
http://blog.onaclovtech.com/2014/07/emailster.html
It even includes the link to a Git he created upon it.
The solution in fact uses AngularJS as #Rexford mentioned in his comment.
Other options... None that I know for the moment, and am exactly researching upon a solution through GCP.
I can tell you they have been working since 2014 on something called "Triggers" that would allow triggering API actions from the database changes (which would helps lot), but seems to have been merged into Google Cloud Functions lately which is in Alpha by the time.
The good news is that as of a few days ago Firebase does now support sending emails... Obviously not from Android - that would be horrible - but from Firebase Fucntions - see here for an example.
Don't think Firebase support that yet..
You can use maligun service with this library for now. I have tested, it works.
https://github.com/sargue/mailgun
https://documentation.mailgun.com/en/latest/quickstart-sending.html#how-to-start-sending-email
I have a scenario where I register users to the system and after they are logged in then I would like to create something like a field called messages(i.e. Facebook messaging system) so 2 users can communicate between each other. This is just an idea but I am trying to find some resources and documentation on line without any luck of how can I achieve this. Can someone give me some advice please on what tools I could use in order to make this idea work ?
I am not asking for source code or so, I just need some advice on how I could achieve this or any kind of references to similar projects would be much appreciated.
Thanks in advance.
This is a perfect use case for a cloud pub/sub messaging service like Pusher or Realtime.co
Check this chat examples on github for Android and iOS:
https://github.com/realtime-framework/MessagingAndroidChat
https://github.com/realtime-framework/MessagingSwiftChat
Note: I work for SightCall. :-)
We offer a platform for realtime communication on mobiles and browsers. While we are best known for WebRTC Video, we also have a realtime data facility that makes it easy to send text-messages between two logged-in endpoints.
We have a sample Android App that shows how to use the framework. You can get an API key for free for a trial.
https://github.com/sightcall/Communicator-for-Android
Of particular interest to you regarding sending/receiving text messages - notice the lines concerning the use of
rtcc.dataChannel().send(bytes, 0, uid);
This is where a text message is sent to a User named by their 'uid', and the method
#RtccEventListener
public void onDataChannelOutOfBandEvent(DataChannelOutOfBandEvent event)
This is where a text message is received as an event.
In my app i need something like that.In my app a user can easily be a member by signing up.Now when a user become a member then he can communicate with other members.Suppose a want to send a message(same message) to all users, same location as he is.Or it may be something like that a user want to send a message(same message) to another 5 users whom he knows.
How can i do that.
I googled may times.I thought web-service can do that job.But i didn't right way to do that.
Can anyone how can i do that with references ???
You can refer following:
Simple PHP With MySQl(To get basics, No Interaction with Android)
http://davidwalsh.name/web-service-php-mysql-xml-json
One Demo:(Interaction with Android)
http://www.codeproject.com/Articles/267023/Send-and-receive-json-between-android-and-php
Good Tutorial:(Interaction with Android)
part1-http://guruparang.blogspot.in/2012/11/connect-android-and-mysql-via-php.html
part2-http://guruparang.blogspot.in/2012/12/connect-android-and-mysql-via-php.html
Best Tutorial (Here u can get All the idea):
http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Use parse.com
Download the sample app. The sample app works both locally in Android and on the server-side. It does the hardest part for you.
Just modify it to make it fit your needs.
Im building an app that helps prevent patients from going missing or helps locate them ... im able to get co_ordinates and send them to the defined number via sms. because of time constraints im looking for help narrowing down what i should look into before attacking the next section. The question is there there a better way to go about sharing data between two apps on different devices rather than sms.
any tips on extracting information from messages would also be great ty.
I think push notifications may be the way forward for you, check out this write up from Google about how to implement them:
https://developers.google.com/android/c2dm/