Download PushClients.zipThanks Mr. Aeric.
Really I'm so sorry for your effort and time.
I read the tutorial many times, but I'll read carefully it again.
I just need to know what you meant by "and change your FirebaseMessaging service to FirebaseMessaging receiver." and how to change it?
Best regards
How add a ReceiverThanks Mr. Aeric.
Really I'm so sorry for your effort and time.
I read the tutorial many times, but I'll read carefully it again.
I just need to know what you meant by "and change your FirebaseMessaging service to FirebaseMessaging receiver." and how to change it?
Best regards
Dear Mr. aericThis Logs mean the notification is successfully sent! (last value with name key)
I can't tell whether your payload is correct or not since you didn't provide the full Logs.
Again, please please please read the tutorial and change your FirebaseMessaging service to FirebaseMessaging receiver.
I don't mean to be rude but you need to be honest.Dear Mr. aeric
Many thanks for your support.
there is any project has the two folders (Sender (pusher), receiver) any simple one, as in many Erel examples, just to start from.
any simple one project, please.
that I read many tutorials, but still can't create that simple project.
Thanks on advance for your efforts.
best regards
I sent file before your assist.why?
You are being told many times, use the new method.
1. Use the new FirebaseMessaging.basI sent file before your assist.
Now, I attached new project (barcode) and added firebase to it,
I not worked, it has an error after my modifications, I attached all files as I can.
Please, help me to run this project please.
Best regards
CallSubDelayed2(FirebaseMessaging, "SubscribeToTopics", Array("general"))
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
Yes sir, I worked with notifications from many years ago.I don't know how you test it.
If you run B4A in Debug, the app must be active in foreground.
You can also try in Release without opening the app.
This thread has grown very long.Yes sir, I worked with notifications from many years ago.
I created .apk file and installed it in Mobile and even run the App for once at least.
and run pusher, and even some time make the app work not only in background mode
sure, the notification must reach whatever mobile/app state but make that may I see Toast message, but not receive any things.
What should i say?I attached the whole project (include Pusher, Receptor and Json files) to enable any gentlemen to help me just by running the project and catch the error.
and even the log result at pusher side.
{
"message": {
"data": {
"title": "this is the title 12",
"body": "And this is the body 34"
},
"android": {
"priority": "high"
},
"topic": "general"
}
}
{
"name": "projects/pushertesting-418f9/messages/1045723609243006626"
}
{
"message": {
"notification": {
"title": "this is the title 12",
"body": "And this is the body 34"
},
"data": {
"title": "this is the title 12",
"body": "And this is the body 34"
},
"topic": "ios_general",
"apns": {
"headers": {
"apns-priority": "10"
},
"payload": {
"aps": {
"badge": 0,
"sound": "default"
}
}
}
}
}
{
"name": "projects/pushertesting-418f9/messages/810388803603576537"
}
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
*** Receiver (firebasemessaging) Receive (first time) ***
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_PermissionResult [mainpage]
** Activity (main) Resume **
*** mainpage: B4XPage_Appear [mainpage]
findCamera
null
2
facing: 0, 0
findCamera
0
2
facing: 0, 0
Preview Orientation: 90
*** Receiver (firebasemessaging) Receive ***
Message arrived
Message data: {body=And this is the body 34, title=this is the title 12}
Message data: this is the title 12
Message data: And this is the body 34
Did you check if the notification permissions are enabled?I see Toast message, but not receive any things.