Gktech Member Licensed User Dec 10, 2018 #1 I'm using FCM for notification (https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/) This is working properly, but I noticed that when the app is open the notifications appears as null, is this normal or is it an error?
I'm using FCM for notification (https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/) This is working properly, but I noticed that when the app is open the notifications appears as null, is this normal or is it an error?
DonManfred Expert Licensed User Longtime User Dec 10, 2018 #2 Hiding the code is a great help for us to help you. - It is working for me. What you mean with NULL? Upvote 0
Gktech Member Licensed User Dec 10, 2018 #3 When the application is closed a record arrives normally, more when the application is open NULL follows the image: Last edited by a moderator: Dec 11, 2018 Upvote 0
When the application is closed a record arrives normally, more when the application is open NULL follows the image:
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2018 #4 I've removed the large image. You should post a smaller one. Are you sending the messages with the B4J tool? Upvote 0
I've removed the large image. You should post a smaller one. Are you sending the messages with the B4J tool?
Gktech Member Licensed User Dec 11, 2018 #5 Erel said: I've removed the large image. You should post a smaller one. Are you sending the messages with the B4J tool? Click to expand... I'm using this API https://github.com/Paragraph1/php-fcm it works fine, just having the problem quoted above. Upvote 0
Erel said: I've removed the large image. You should post a smaller one. Are you sending the messages with the B4J tool? Click to expand... I'm using this API https://github.com/Paragraph1/php-fcm it works fine, just having the problem quoted above.
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2018 #6 Use the B4J tool. It will work. Once you see that it works you can build a similar json message in your PHP code. Upvote 0
Use the B4J tool. It will work. Once you see that it works you can build a similar json message in your PHP code.
KMatle Expert Licensed User Longtime User Dec 11, 2018 #7 Like with all API's it depends on what you send and what you do with it (data/notification/mixed messages). THERE ISN'T JUST ONE MESSAGE TYPE. As @DonManfred has written: Show us the code of B4X: Sub fm_MessageArrived (Message As RemoteMessage) . Here are the different message types which behave different: https://firebase.google.com/docs/cloud-messaging/concept-options Upvote 0
Like with all API's it depends on what you send and what you do with it (data/notification/mixed messages). THERE ISN'T JUST ONE MESSAGE TYPE. As @DonManfred has written: Show us the code of B4X: Sub fm_MessageArrived (Message As RemoteMessage) . Here are the different message types which behave different: https://firebase.google.com/docs/cloud-messaging/concept-options