M Mike1970 Well-Known Member Licensed User Longtime User Nov 6, 2019 #1 Hi everyone, i used this tutorials: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/ In the second one @Erel shows that he kills all the app in background and then he still receives messages.. I tried but i receive only if the app is open, someone can help me to find out what's wrong? EDIT: I tried on others phone, it works, it's not working on Meizu m5c Attachments FirebaseMessagingExample.zip FirebaseMessagingExample.zip 9.8 KB · Views: 583 Last edited: Nov 6, 2019
Hi everyone, i used this tutorials: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/ In the second one @Erel shows that he kills all the app in background and then he still receives messages.. I tried but i receive only if the app is open, someone can help me to find out what's wrong? EDIT: I tried on others phone, it works, it's not working on Meizu m5c
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Nov 6, 2019 #2 In my app, it is still receiving msgs even I killed the app, I added this to activity_create event: Code: StartService(FirebaseMessaging) StartService(Starter) Upvote 0
In my app, it is still receiving msgs even I killed the app, I added this to activity_create event: Code: StartService(FirebaseMessaging) StartService(Starter)
M Mike1970 Well-Known Member Licensed User Longtime User Nov 6, 2019 #3 HAH said: In my app, it is still receiving msgs even I killed the app, I added this to activity_create event: Code: StartService(FirebaseMessaging) StartService(Starter) Click to expand... Tried now. It doesn't work.. Upvote 0
HAH said: In my app, it is still receiving msgs even I killed the app, I added this to activity_create event: Code: StartService(FirebaseMessaging) StartService(Starter) Click to expand... Tried now. It doesn't work..
DonManfred Expert Licensed User Longtime User Nov 6, 2019 #4 HAH said: I added this to activity_create event Click to expand... You NEVER should start the starter service manually Quote from the Starter Service Tutorial The starter service should never be explicitly started. Click to expand... Upvote 0
HAH said: I added this to activity_create event Click to expand... You NEVER should start the starter service manually Quote from the Starter Service Tutorial The starter service should never be explicitly started. Click to expand...
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Nov 6, 2019 #5 @DonManfred Why? Upvote 0
DonManfred Expert Licensed User Longtime User Nov 6, 2019 #6 I dont know. i just know that Erel wrote the above sentence in the tutorial. It must have a reason! Upvote 0
M Mike1970 Well-Known Member Licensed User Longtime User Nov 6, 2019 #7 DonManfred said: I dont know. i just know that Erel wrote the above sentence in the tutorial. It must have a reason! Click to expand... Hi don, do you have an idea why Firebase doesn’t work properly ? Upvote 0
DonManfred said: I dont know. i just know that Erel wrote the above sentence in the tutorial. It must have a reason! Click to expand... Hi don, do you have an idea why Firebase doesn’t work properly ?
DonManfred Expert Licensed User Longtime User Nov 6, 2019 #8 Mike1970 said: Firebase doesn’t work properly Click to expand... 1. It works properly for me so i would not say Firebase isn´t working properly. 2. If i would have an idea i would have written something about. Upvote 0
Mike1970 said: Firebase doesn’t work properly Click to expand... 1. It works properly for me so i would not say Firebase isn´t working properly. 2. If i would have an idea i would have written something about.
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2019 #9 The starter service is a special service. It will misbehave if started explicitly. If the notifications only arrive when your app is running then you haven't implemented it properly. Carefully follow the tutorial and make sure to use the B4J code to send the messages. With that said, it is better not to kill the app while testing it. You can instead restart the device as a test. Upvote 0
The starter service is a special service. It will misbehave if started explicitly. If the notifications only arrive when your app is running then you haven't implemented it properly. Carefully follow the tutorial and make sure to use the B4J code to send the messages. With that said, it is better not to kill the app while testing it. You can instead restart the device as a test.
M Mike1970 Well-Known Member Licensed User Longtime User Nov 7, 2019 #10 Erel said: The starter service is a special service. It will misbehave if started explicitly. If the notifications only arrive when your app is running then you haven't implemented it properly. Carefully follow the tutorial and make sure to use the B4J code to send the messages. With that said, it is better not to kill the app while testing it. You can instead restart the device as a test. Click to expand... I carefully followed the tutorial, infact the same code works on 2 devices out of 3. The third was the first i was working with (I tried to restart) Upvote 0
Erel said: The starter service is a special service. It will misbehave if started explicitly. If the notifications only arrive when your app is running then you haven't implemented it properly. Carefully follow the tutorial and make sure to use the B4J code to send the messages. With that said, it is better not to kill the app while testing it. You can instead restart the device as a test. Click to expand... I carefully followed the tutorial, infact the same code works on 2 devices out of 3. The third was the first i was working with (I tried to restart)
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2019 #11 On some devices notifications will not work after the user explicitly kills the app. There is nothing that you can do about it. If notifications works properly on most devices then it is likely that there is no problem in your app. Upvote 0
On some devices notifications will not work after the user explicitly kills the app. There is nothing that you can do about it. If notifications works properly on most devices then it is likely that there is no problem in your app.