I have a released application which is working fine. But now I would like to release a new version and I tested push notification before I upload it to the play store. In the app I register to GCM and the pushnotification id will be send to our backend. When the user do something in the app or website the backend send a notification to the GCM and the GCM should send the notificaton to users device. BUT, the device got multiple times this notification. I logged my GcmListenerService and I see that the onMessageReceived() method called after 2 minutes, and after 4 minutes and after 8 minutes and after 16 minutes, and after 32 minutes. So my application got the same notification multiple times. Why?
Android GCM send push notification multiple times
405 views Asked by just At
2
There are 2 answers
1
abielita
On
As stated here, there are instances wherein the GCM engine might change the registration ID whenever it determines it need to. And this might happen at anytime without prior warning. That's why you should always check if the last registration ID matches the one that is current. You may also refer with this link. Maybe your regid registered more times in your database.
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in NOTIFICATIONS
- Flutter : How can i make a notifcation that would pop-up every 5 minutes from a given time?
- I do not receive iOS push notifications from Element Matrix Notify
- How can I schedule OneSignal notifications programmatically from a Flutter app
- Notification.permission always return 'denied' on firefox
- flutter notification custom sound not ringing is some OPPO and Huawei devices
- Update Android icon notification in Statusbar regarding a process like download or export on Android 13
- Handling response from Laravel-Notification-Channels/Telegram after message dispatch to channel
- Notification full screen on wear os
- i want to show notification in laravel using ajax
- How to show images in music player's background notification in flutter
- Salesforce: bell notifications are not sent to the approver
- Generating push token for device using expo push-notification in bare react native
- How to print payload data on pressing Action button in Awesome Notifications Flutter
- Open NavigationLink from Local Notification in NavigationStack iOS17
- Require payload format to send the notifications with action buttons like accept/reject using azure notification hub
Related Questions in GOOGLE-CLOUD-MESSAGING
- Bias correction for worldclim data for species distribution modeling?
- Unable to find users to notify with test with Azure Notification Hub version Google (FCM v1)
- Openssl AESNI-GCM table free benchmark
- .NET MAUI Android FireBase service OnMessageReceived strange behavior
- .NET MAUI on push notification click error is thrown: 'Window was already created'
- Flutter app not receiving notification from firebase in specific cases
- Is it possible to filter real-time developer notifications (RTDN) from Play Store
- Problem with Firebase push notification using php
- Google Cloud Pub/Sub integration in iOS
- decrpt data encrypted with aws kms offline
- Flutter getAPNSToken() returns null on real device
- FCM - connected NodeJS, I'm getting this error "code": "app/invalid-credential"
- Is it possible to set Kafka to receive a message in the topic with the name of the file that is uploaded to Google Storage?
- PHP Encrypt AES-256-GCM using Phpseclib and Decrypt with Javascript using crypto.subtle
- App has been flagged for GCM SDK usage even though we no longer use GCM SDK
Related Questions in GCMLISTENERSERVICE
- Should we handle InstanceIDListenerService when app is in background?
- Not able to get GCM token in MI 5 with 5.0 Android and LG G6 with android 7?
- How do I route GCM messages from a GcmListenerService to their relevant handlers?
- downloading file from GcmListenerService works only some of the time
- OnMessageReceived is not invoked
- Android GCM send push notification multiple times
- GCM Push notification not received on single device android
- How to avoid delay in sending upstream message via FCM
- how to get a Token from InstanceID in GCM
- Is the PUSH token sufficient to send a notification to a server via GCM
- GcmListenerService is not available
- How to send data from App to server using GcmPubSub
- Could not find com.google.gms:google-services:9.0.0
- google-service.json is missing
- Android GCM not received when RAM cleared
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Without further info I would suspect your server is resending the messages rather than the app receiving them multiple times.