Questions tagged [firebase-notifications]

Firebase Notifications is a free service that enables targeted user notifications for mobile app developers. Firebase Notifications is a cross-platform solution that lets you easily deliver notifications at no cost.

About Firebase Notifications

Firebase Notifications is a component of the Firebase suite of tools for cross-platform application development.

  • Send free and unlimited notifications across Android, and iOS.
  • Send messages and analyze effectiveness in one dashboard without writing any code
  • Integrate with Firebase Analytics to deliver messages to a user segment

Related tags

749 questions
16
votes
6 answers

Firebase when receive Push Notification did not receive the popup

import Firebase import FirebaseInstanceID import FirebaseMessaging func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { registerForPushNotifications(application) …
15
votes
2 answers

Firebase: Not able to receive notification on my web browser

I am using Laravel 5.4, I have just started learning firebase messaging and I want to get the notification on my web-browser if someone sends it. What I've implemented is, in a master page I have imported firebase scripts as below:…
Dev
  • 6,570
  • 10
  • 66
  • 112
15
votes
6 answers

Firebase Push Notifications not received if app is closed

I'm testing Firebase Push notifications, sending a notification from the Firebase composer panel, and I noticed that if I close the app process from App Information panel, the push notifications sent doesn't reach the device. Even if I start again…
15
votes
5 answers

Android app is not receiving FCM notification when closed

I am checking Firebase Cloud Messaging to send notification. Have implemented it already and its receiving notification when app is in open state. But if I close app, its no longer gives notification. Is there any solution for this. Code: WebRequest…
14
votes
9 answers

Firebase Cloud Messaging Notification not sending iOS payload format

Last night I test push notification using FCM in my apps and it's crashed (It was working few days back). I test it using notification menu in firebase console. I further investigate the notification payload format was changed and doesn't include…
14
votes
2 answers

Topics on Firebase Cloud Messaging?

Is there any constraints about number of different topics for Firebase Cloud Messaging in one app?
user6450105
13
votes
1 answer

make flutter notification (via firebase) pop to foreground (and not to be only icon in statusbar)

I am trying to implement notifications for a flutter app. On iPhone (left) it looks like expected and the notification is show for a short time, then hides automatically. But on Android (right side, Android 9, motorola) it appears just as an icon in…
13
votes
6 answers

Android Push notification sound is played only when app is in foreground but not playing sound when app is in background

I am using FCM for push notification below code to play sound when notification received public void playNotificationSound() { try { Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); …
13
votes
3 answers

How to retrieve notification message intent.getExtras() when app is background FCM

I am using FCM for Simple notification When the app is in foreground, everything working properly. I am getting a notification plus the data message inside the onMessageReceived method. But when app is in background, I am getting notification in…
13
votes
3 answers

Count subscribers of a topic in Firebase Cloud Messaging

What I want to do with my app is this: users can select different interests and as soon as there are more than ~5 people interested in the same thing, I want to send them a notification. I thought Firebase + Topics would be a good choice for this.…
13
votes
8 answers

Open activity on firebase notification received in foreground

When my application is open and I receive a notification I want to be able to open the activity associated immediately without the need of the user to tap on the notification. This question is very similar: Open app on firebase notification…
13
votes
3 answers

Firebase push notifications custom sound

I am currently working on an app and I have implement firebase Push Notification service into my app. I am recieving notification on my iphone but I am unable to set the custom alert sound that I want. I added the sound as a .caf I added the sound…
Mentos
  • 483
  • 1
  • 4
  • 14
13
votes
2 answers

GCM to FCM for Xamarin

Xamarin has the predefined support to GCM (Google Cloud Messaging) which was explained in https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/android/remote_notifications_in_android/ As currently Google…
12
votes
2 answers

Open browser when clicked on fcm notification instead of opening launcher activity

I want to send url with FCM to android application. Is it possible to open browser when clicked on FCM notification instead of opening launcher activity? I know it possible with overriding onMessageReceived() method but i don't want do it. I checked…
12
votes
1 answer

How can I get device id for push notifications using firebase in android

I found this solution and I think it is not the ID which is required for notification kindly tell me by some samples: import android.provider.Settings.Secure; private String androidIdd = Secure.getString(getContext().getContentResolver(),…
1 2
3
49 50