Questions tagged [android-push-notification]

252 questions
1
vote
2 answers

I don't get my bundle's data in onNewIntent method of MainActivity

I get a push notification in my FireBaseService and I want to send it's data to MainActivity, below is my code: Intent intent = new Intent("PUSH_NOTIFICATION"); intent.setClassName(this, MainActivity.class.getName()); Bundle bundle =…
0
votes
1 answer

How to I request for Post Notification permission for Android 12L or lower?

We know in Android 13 and above, we can (and have to) ask for Post Notification permission as per https://stackoverflow.com/a/72981519/3286489 Also, we know that in Android 12L and earlier, the Post Notification are allowed by default. As app…
Elye
  • 53,639
  • 54
  • 212
  • 474
0
votes
0 answers

real time notifications between mobile app and web app

I'm developing an application in which users can send reports to the admins and the admin has a web panel from where he can check the reports from the users. So I need real-time notifications between my mobile app and website so what do I need to…
0
votes
0 answers

Custom push notification

how to send custom push notification to 1.5 million users with there name in body using firebase or SNS push notification? For example: we have username: Santosh, Fcm: adgbbdghjjjbc Then user will get notification with body as following Hey Santosh,…
0
votes
0 answers

In android, How to call a get api method inside firebase onMessageReceived when the app is closed

How to call a get api method inside firebase onMessageReceived when the app is closed or how to start a foreground service when we receive push notification (the app is closed, even the app is not in background)
0
votes
1 answer

Xamarin Android Display icon on Main Page after CrossFirebasePushNotification.Current.OnNotificationReceived fires

I have a Xamarin multi-platform app and I'm using the FirebasePushNotification Plugin v3.4.35 and am working on the Android app. Their instructions suggest the addition of a MainApplication : Application class to hold their handlers which I've done.…
0
votes
1 answer

Error: The registration token is not a valid FCM registration token

I have an Android App (Angular + Ionic) that uses Firebase to sent notifications. The app has been working for a while with no problems. I recently made some changes to the DB service of the app - nothing to do with the Firebase notifications at…
0
votes
0 answers

Expo requestPermissionAsnyc not showing prompt on Android

I have been implementing push notifications for my React Native mobile app. But I am having issues now the app is in our staging environment. When the user signs in, their deviceToken is sent to our backend server, where we can store this data, to…
0
votes
2 answers

Custom Expo Push Notification Icon Not Displaying On Android Device(s)

I have been able to successfully configure expo push notifications for my app (title and message appears), but I cannot for the life of me change the default expo icon (upside down V). This is what's currently being displayed. I am testing on a…
0
votes
1 answer

Android. How to receive push data inside launch activity?

I'm using firebase cloud messaging. I have implemented FirebaseMessagingService. And everything seems to be working well. However, I have a question, is it possible, if my application is not running, that the method onMessageReceived will not be…
0
votes
1 answer

How to get Push Notifications working for React Native Expo app

I recently noticed that notifications for a mobile app I work on no longer work. I had a thought this morning, and think it could be down to how we build the app now. Previously, we used the now deprecated expo build, and had issues migrating to eas…
0
votes
0 answers

Firebase Cloud Messaging there is never a notification sound

I implemented sending push notifications from the Firebase console. When I set up a notification in the Firebase console, I turn on the sound, but the sound does not work when the application is in the foreground and when closed. I tested on from…
0
votes
1 answer

Firebase Push Notification Giving Error like 'int java.lang.Integer.intValue()' on a null object reference

Here is the Class of Local Notification Service which will Call while the Notification Came class LocalNotificationService { static final FlutterLocalNotificationsPlugin _notificationsPlugin = FlutterLocalNotificationsPlugin(); static…
0
votes
0 answers

Flutter awesome notification is working in emulator but not working in real device?

I am using flutter android alarm manager plus and awesome notification package to get notifications periodically. It's working perfectly in the emulator but when I am generating an apk file and installing the app in a real android device through…
0
votes
0 answers

How to use Push Notification Service API in React JS websites?

I am unable to use push notification service API in the website. Can someone help me with the complete process?