Android Question FCM Push Notification problem?

ilan

Expert
Licensed User
Longtime User
hi

i am trying to send a notification to my app but i am getting error 404

i follow this thread: https://www.b4x.com/android/forum/t...ebase-cloud-messaging-fcm.67716/page-16#posts

i am also using this tool to send notification. i am using receiver for android but still no luck:

Waiting for debugger to connect...
Program started.
ResponseError. Reason: , Response: <HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<!-- GSE Default Error -->
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>
[jobname=fcm, success=false, username=
, password=, errormessage=<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<!-- GSE Default Error -->
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>
, target=class b4j.example.main
, taskid=1, req=anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest@1f021e6c, response=anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpResponse@103f852
, tag=java.lang.Object@587c290d, invalidurl=[URL]https://invalid-url/[/URL], defaultscheme=https
, main=null, httputils2service=null]

what am i missing?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

ilan

Expert
Licensed User
Longtime User
ok thanks @DonManfred
but does it mean now that we dont target specific apps? only topics now?

because i could not find in the b4j fcmpush app anything related to app id, app apikey,...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
because i could not find in the b4j fcmpush app anything related to app id, app apikey,...
Check this thread for a working workaround

Also see the documentation

Documentation here https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages

Also check my answer in this thread
 
Upvote 1
Top