Android Question Firebase notification loop

pazzokli

Active Member
Licensed User
Longtime User
Hi all, I did an App with notification with firebase. I don't know why some notification are re-shown without interation. Could the server send them in loop!
 
How are you pushing the notifications to the device? Through the firebase console? If so, there's absolutely no reason for it to send them in a loop.
 
Upvote 0
How are you pushing the notifications to the device? Through the firebase console? If so, there's absolutely no reason for it to send them in a loop.
No I use another device for push them.
But the device generate the notification when I push a button. Should be done once but after some Second the notification is pushed again
 
Upvote 0
Can you share your code.. I mean the code that does the pushing?
 
Last edited:
Upvote 0
Can you share the code that does the pushing?
See the FCM Tutorial. There is a B4J App which you should use to push the message

Edit: Sorry, i did not read carefully. You was asking @pazzokli to post thje code he is using. Sorry for irritating
 
Upvote 0
Is difficult post the code for the notification only. I create a very complex code and I think you can't decoder it
 
Upvote 0
Is possible see in Firebase Console notification from device?
How serever know the notification delivery is good? Probably my server try to send again because think no delivery issue
 
Upvote 0
Could the server send them in loop!
Is this a question?
The B4J code sends the messages once.

Is possible see in Firebase Console notification from device?
You shoudn't use the console at all.

How serever know the notification delivery is good?
Not sure what you are talking about. There is no server involved. The B4J code which you can call from B4A as well sends the message to Firebase servers.

If you are using B4A v8+ then you should call Service.StopAutomaticNotification. Otherwise you will get two notifications in Android 8+.
 
Upvote 0
Is this a question?
The B4J code sends the messages once.


You shoudn't use the console at all.


Not sure what you are talking about. There is no server involved. The B4J code which you can call from B4A as well sends the message to Firebase servers.

If you are using B4A v8+ then you should call Service.StopAutomaticNotification. Otherwise you will get two notifications in Android 8+.
Hi Erel, thanks for reply. Why I'll get double notification? Is it a bug?
 
Upvote 0
Back
Top