Hello, I have this simple server example b4j, where it sends a message to the client application:
https://www.b4x.com/android/forum/t...s-firebase-cloud-messaging-fcm.67716/#content
-and create a project with firebase correctly
-and put the json tool in the folder of my project
- correctly create the service with the corresponding name (FirebaseMessaging)
- I get the notifications correctly from the firebase page.
Now in program b4j I enter the server key where it is indicated, when I run the program I get the following.
Waiting for debugger to connect...
Program started.
[jobname=fcm, success=true, username=
, password=, errormessage=, target=class b4j.example.main
, taskid=1, req=anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest@bc508c, tag=java.lang.Object@19866c
, httputils2service=null]
{"message_id":5747574234248541793}
Program terminated (StartMessageLoop was not called).
I miss anything else? I run the 2 applications server and client but the notification does not arrive
https://www.b4x.com/android/forum/t...s-firebase-cloud-messaging-fcm.67716/#content
-and create a project with firebase correctly
-and put the json tool in the folder of my project
- correctly create the service with the corresponding name (FirebaseMessaging)
- I get the notifications correctly from the firebase page.
Now in program b4j I enter the server key where it is indicated, when I run the program I get the following.
Waiting for debugger to connect...
Program started.
[jobname=fcm, success=true, username=
, password=, errormessage=, target=class b4j.example.main
, taskid=1, req=anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest@bc508c, tag=java.lang.Object@19866c
, httputils2service=null]
{"message_id":5747574234248541793}
Program terminated (StartMessageLoop was not called).
I miss anything else? I run the 2 applications server and client but the notification does not arrive