Firebase

Firebase Cloud Messaging (notifications)

library link: https://github.com/karanatwal/FirePush Reference link: https://stackoverflow.com/questions/37576705/firebase-java-server-to-send-push-notification-to-all-devices/42455788 official link: https://firebase.google.com/docs/cloud-messaging/send-message App Level Build.Gradle : implementation ‘com.google.firebase:firebase-analytics:17.2.0’ implementation ‘com.google.firebase:firebase-messaging:20.0.0’ step 1: create a service class that extends firebaseMessagingService class: public class FirebaseMessagingService extends com.google.firebase.messaging.FirebaseMessagingService { @Override public void onMessageReceived(RemoteMessage remoteMessage) { //get default notificaion data String mesgeTitle=remoteMessage.getNotification().getTitle(); //get extra data String msgType=remoteMessage.getData().get(“msg_type”); } } step 2: enable …

Firebase Cloud Messaging (notifications) Read More »

Firebase Error Exceptions

1.e instanceof FirebaseNetworkException– 2. FirebaseAuthUserCollisionException–already registed with email 3. FirebaseAuthEmailException–password reset end email problem 4. FirebaseAuthInvalidCredentialsException–wrong / invalid email and password 5. FirebaseAuthInvalidUserException– user is disabled,ERROR_USER_NOT_FOUND delted form console

top