Android Question Problem firebase

devmobile

Active Member
Licensed User
I use firebase example source for test firebase
It is ok but have a bug or other
I cannot receive push notification sometimes
Example i sent 3 message and in device i could received first message only
I need to firebase
thanks
 

KMatle

Expert
Licensed User
Longtime User
Hi and welcome,

how do you send the messages? (B4x is recommended, firebase console only for a quick test).

Do you use the example 1:1? If not, please post your code using code tags.
What kind of message do you send (note that there's a difference between data and notification messages). Just post the SEND sequence.
 
Upvote 0

devmobile

Active Member
Licensed User
Hi and welcome,

how do you send the messages? (B4x is recommended, firebase console only for a quick test).

Do you use the example 1:1? If not, please post your code using code tags.
What kind of message do you send (note that there's a difference between data and notification messages). Just post the SEND sequence.
Thanks
Yes i use example in forum
When i send push,as i can receive it in device
but when after 3 second again send push,device cannot receive push
My project is :
Send request from teacher for student
and student receive it and accept it and again send push from student to teacher
Is is possible to use push notification?
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Upvote 0

devmobile

Active Member
Licensed User
Of course. Maybe your apps have lost the firebase-tokens on the way. Check if the tokens are stored. Please post the return of the OkHttpUtils call in JobDone when it fails on the 2nd time.
I dont use token because firebase dont return token sometimes
rather use topic
i use device id in topic instead of general topic
No it dont fails when send push
but in device i cannot receive it
 
Upvote 0

devmobile

Active Member
Licensed User
Yea i can attach my code
No my device is nexus and samsung
I have a question
Is it good to use mqtt instead of push?
 
Upvote 0

devmobile

Active Member
Licensed User
Strange issue. Token is always present in every message. I use it for a Quick answer. At least in my experience...
Yes i know that token is quick answer but token not generate in first run app and i have to rerun app for generate token
 
Upvote 0

devmobile

Active Member
Licensed User
Can you post the full code (hard to say without seeing it). Another one: Is it a Huawei phone? (change the energy settings here to allow your app run in the background)
I knew what is problem
I use php code for send push and sometime send push but not receive
but when i send push with b4j,push receive in device
I need send push with php
How do it without any problem?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top