I changed services to receivers in all my apps.
Testing in a device with Android 6, I get the issue that I describe below.
To show the problem, I try to run this Firebase Messaging example in Android 6:
but I get this message in the log and don't received the push notification:
It worked only if I change the receiver to service.
In a device with Android 10 the receiver worked fine.
The solution it check the version (6.0) and call a service and in Android 7+ I call the receiver?
Or there a solution to use the receiver in Android 6?
Thanks in advance for any tips.
Testing in a device with Android 6, I get the issue that I describe below.
To show the problem, I try to run this Firebase Messaging example in Android 6:
[B4X] Firebase Push Notifications 2023+
Google has deprecated the previous method of sending push notifications. It will stop working on June 2024. If you have an already working solution then you only need to update the B4J side. Do make sure that you switched from the service to a receiver on B4A. The new API is (confusingly) named...
www.b4x.com
but I get this message in the log and don't received the push notification:
B4X:
sending message to waiting queue of uninitialized activity (subscribetotopics)
It worked only if I change the receiver to service.
In a device with Android 10 the receiver worked fine.
The solution it check the version (6.0) and call a service and in Android 7+ I call the receiver?
Or there a solution to use the receiver in Android 6?
Thanks in advance for any tips.