Hello all,
I have followed all the instructions as : https://www.b4x.com/android/forum/t...h-messages-server-not-required.68645/#content
and created a small app for notification. I have correctly created IOS certificate for push notifications.
During run test, my notification fm.SubscribeToTopic("TWGroup") and even able to display 'GetToken'. I created below code to send group notification as such in my IOS app :
by calling: TW_Notifi_SendGroup("TWGroup","Send Group title","Hello Group Body")
My android (*Running on the same key) received the group message.... but not IOS. Seems that Application_RemoteNotification is not firing.
Where can i go wrong?
I even tried B4J send message (downloaded from erel example link) with the same key... and again my android app recieved the notification but not IOS. Please help...
*Please find attached working notification example for IOS. *When click Send group, My Android are able to recieve the notification... but not on IOS
Download here: https://www.techiesworld.net/NotifiTest.zip
I have followed all the instructions as : https://www.b4x.com/android/forum/t...h-messages-server-not-required.68645/#content
and created a small app for notification. I have correctly created IOS certificate for push notifications.
During run test, my notification fm.SubscribeToTopic("TWGroup") and even able to display 'GetToken'. I created below code to send group notification as such in my IOS app :
B4X:
'******************************************************
'SEND TO NOTIFICATION GROUP
'******************************************************
Public Sub TW_Notifi_SendGroup(strTopic As String, Title As String, Body As String)
Dim Job As HttpJob
Job.Initialize("fcm",Me)
Dim m As Map=CreateMap("to": $"/topics/${strTopic}"$)
Dim notifi As Map=CreateMap("title": Title,"body":Body)
Dim data As Map=CreateMap("title": Title,"body":Body,"notification":"Group")
m.Put("notification",notifi)
m.Put("data",data)
Dim jg As JSONGenerator
jg.Initialize(m)
Job.PostString("https://fcm.googleapis.com/fcm/send",jg.ToString)
Job.GetRequest.SetContentType("application/json")
Job.GetRequest.SetHeader("Authorization","key=" & TW_Notifikey)
End Sub
by calling: TW_Notifi_SendGroup("TWGroup","Send Group title","Hello Group Body")
My android (*Running on the same key) received the group message.... but not IOS. Seems that Application_RemoteNotification is not firing.
Where can i go wrong?
I even tried B4J send message (downloaded from erel example link) with the same key... and again my android app recieved the notification but not IOS. Please help...
*Please find attached working notification example for IOS. *When click Send group, My Android are able to recieve the notification... but not on IOS
Download here: https://www.techiesworld.net/NotifiTest.zip
Last edited: