Questions tagged [android-push-notification]

252 questions
1
vote
0 answers

Parse Push Plugin Cordova

I am using parse-phonegap-plugin-push to register cordova android app with google cloud messaging. But it did not return anything. I ran the app in Android Device but still did not get anything and double checked my sender id also. I am using…
1
vote
1 answer

java.lang.ClassCastException: fi.rogerstudio.possis.MainApplication cannot be cast to com.facebook.react.ReactApplication

I am getting this error when receiving push notification only when the app is open, foreground mode! Does anyone had this issue before using the Firebase push notification and react-native-fcm? COde: showLocalNotification(notif) { …
1
vote
0 answers

React Native Android app crash when receiving push notification on foreground

App is working perfectly fine when receiving push notifications on background, but it crashes when in foregrond. I am using RN 0.49 and react-native-fcm 11.3.1 package. My code looks as below: FCM.on(FCMEvent.Notification, async (notif) => { …
1
vote
2 answers

Network retrofit 2 call after push notification received when phone is idle

Let's say my application receives a push notification from a server that carries an item ID. After receiving the push notification item's details have to be fetched from the server (using retrofit) and after that an Android notification is…
1
vote
2 answers

How can I hide notification, when user select option from my PreferenceActivity(SettingActivity)

I am using Preferences concept for my SettingActivity and I have an SwitchPreference toggle button for notification on/off, but enable to write code for off notification, when user toggle to off notification.
1
vote
1 answer

FCM Push notification not receiving in Android customized OS

Can anybody please help me to solve this issue... I have implemented the FCM functionality in my project. Its normally working in all default android OS versions. phones like moto, nexus, redmi, etc., But I have installed the same apk in oppo,…
1
vote
1 answer

Migrating device token registration IDs from Urban Airship to Firebase Cloud Messaging

From an Urban Airship Offboarding document, I received the following information: We are sorry to see you leave, but want to make your transition a smooth one. Here are some things you'll want to take care of: Make an API call to access all of your…
1
vote
1 answer

Firebase Push notification is not playing sound when using cURL https://fcm.googleapis.com/fcm/send

When I use the Firebase console, everything is perfect by activating "Sound" under the "Advanced options" as explained by the best answer Mouad Abdelghafour AitAli wrote in the accepted answer at Firebase Push notification is not playing sound when…
1
vote
1 answer

What is the role of server in Push Notification for Android and IOS?

I am a bit Confused in Push Notification concept, I mean can I send notification to all registered users from firebase console after my application is live. If yes then What is the role of server (like MS Azure or AWS etc) if we can directly send…
1
vote
2 answers

Difference between "topic messages", "target messages", and "user segments" in Firebase Cloud Messaging

I want to send push notifications using Firebase Cloud Messaging to users of my App. I have two categories: Country 1 Country 2 In the settings of the app, users have radio buttons to subscribe to either Country 1 or Country 2. I already completed…
1
vote
3 answers

Android - Firebase push notification not working

I have created and setup Firebase console completely as Google tutorial mentioned. I have implemented Services in my project as well. While I am sending the message from Firebase console it is not receiving in my app. When I am trying to send using…
1
vote
0 answers

Android - I can observe irregularity on receiving OneSignal push notifications

I test on two devices: - Samsung Note4 using api 23 6.0.1 - Moto G5 api 24 7.0 When I close the app The OneSignal push notifications are not received on the Samsung device but it´s received on the Moto G5 as a Notification since app is closed…
Tord Larsen
  • 2,670
  • 8
  • 33
  • 76
1
vote
1 answer

Multiple Push notifications in android

I am working on Android application in which I am getting push notifications. I have searched many answers in different forums as well but didn't find a suitable solution for this problem. I have even tried to change Notification ID as well for not…
Usman Khan
  • 3,739
  • 6
  • 41
  • 89
1
vote
1 answer

How to deploy a connection between two android devices using php host/server

I'm trying to send continuous data (like location) from android device A to android device B . Right now android device A sends data to server and server saves data inside database and then device B reads data from server continuously. 1- Is there…
1
vote
0 answers

Track push notification click

I have a android library project that handles the push notification for the application. I have to track the different user actions upon receiving the notification. I get events like notification received, rendered etc, but Is there any way to track…