Android Question FCM subscribe to topic, no topic found ?

hookshy

Well-Known Member
Licensed User
Longtime User
I have added FCM to my app and I have the following problems:

The app seems to have no topic registered. I have created the FirebaseMessaging service .
StartingIntent.IsInitialized returns true
fm.HandleIntent(StartingIntent) returns false


Should I see in FCM console the topics that are created within the app?
The sub SubscribeToTopics is fired when the app starts !


I have send some push notifications from the FCM website console and some of them got to the app
Message.GetData.Get("title"),
Message.GetData.Get("body")
with Null Null parameters (message and message label)
I have problems with myb4j ..did not tried to send notification from exemple FCMpush b4j exemple.


The send httpjob from the exemple posted in tutorial works but I never see any notifications.
I did not added admob in the manifest editor as I will not use it in the app.


Thank you
 

KMatle

Expert
Licensed User
Longtime User
I have send some push notifications from the FCM website console and some of them got to the app
Message.GetData.Get("title"),
Message.GetData.Get("body")
with Null Null parameters (message and message label)

So you receive (at least) "some" messages.

- check your energy saving scheme on your device (on Huawei all unknown apps will be stopped when the screen is turned off! You have then allow it to run in the background)

- check what you send (no matter from where). The sender (here the console) decides what parameters it sends.

Important: See my comments of foreground/background messages in this post: https://www.b4x.com/android/forum/t...d-background-data-notification.73356/#content
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
Thank you KMatle
It seems the general topic is registered now in fcm console !
I must do more testing to understand ...and will come back
Still waiting though for the notifications to come .... do not know even if I can receive my own notifications ...those send from my device will arrive to other devices I guess yes
 
Upvote 0
Top