iOS Tutorial FirebaseNotifications / Push Messages (server not required)

Status
Not open for further replies.

dealsmonkey

Active Member
Licensed User
Longtime User
Yes. What happens when you run it? Do you see the push token logs?

In the fcm_connected is subscribe to ios+general, I am getting a PushToken:1 from the log and a token is being generated. If I send from firebase it shows as completed, but no devices.

My b4j app log is this :

B4X:
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@133314b, tag=java.lang.Object@b1bc7ed
, httputils2service=null]
{"message_id":7452680364343505248}

Thanks in advance.
 

dealsmonkey

Active Member
Licensed User
Longtime User
You mean ios_general, right?


This is not relevant. Don't use Firebase console.

The message was sent successfully.
Are you using the exact code from the tutorial?

Have you tested it in both background and foreground modes?

Ok, thanks. I have checked the code but will do so again. I have tried foreground and background. I will keep checking, thanks for your input, it is appreciated.

Neil
 

dealsmonkey

Active Member
Licensed User
Longtime User
Just one thing is, you mentioned in an earlier post about checking the aps.cer file and the bundle ID. When I look in the aps.cer, my bundle
Ok, thanks. I have checked the code but will do so again. I have tried foreground and background. I will keep checking, thanks for your input, it is appreciated.

Neil

Ok, I have sorted out my problem = analytics.Initialize

I had forgotten to initialize the analytics. As soon as I did the messages came through

The good thing about this, is I now understand the Apple Certificate, provisioning system a lot better !!!!

Thanks for your help again.

Regards

Neil
 

Melek

Member
Licensed User
 

Melek

Member
Licensed User
Hi, I have this error when compiling the App, could you help me?
I followed all the steps as in the tutorial
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…