Category : push-notification

I want to show icon of my app’s notification in the left-most position no matter if new notification arrive or not. what can I do to achieve this? also, my notification is showing at 3rd position in the notification bar(when there’s already other notifications present). I want my notification to always show on top and ..

Read more

I’m working with Firebase Cloud Messaging, sending notifications from mongoDB to react-native application using react-native-push-notification. Notification is working, but I can’t play the custom notification I added in my android app in /res/raw folder. My code: const message = { "to": userFinded.deviceToken, "notification": { "title": ‘Body test’, "color": ‘#ff9d00’, "sound": ‘my_sound’, //Not working }, }; ..

Read more

I am trying to send notification when ever a new message arrive. But it is not working. I tried printing the ‘response.body().success’ in logcat and from that i came to know that its valuing is comming out to be 0 and not one. Can some one help me with this. MessageActivity.java DatabaseReference tokens = FirebaseDatabase.getInstance().getReference("Tokens"); ..

Read more

I’m building an app where I send notifications from the Firebase Cloud Messaging service. When the app is in the foreground, I can get the content of the notification and display it in the app. However, when the app is closed/ in the background, I still receive the notification but I cannot show the content ..

Read more