Hello,
a few years ago I made an app in B4A that used the google push API. Now I am working on a new app that also needs push notifications. But I can not figure out how it all works. I searched a
million times but don't get any proper tutorial on how to even activate that and get the API key for the push notifications. I can not remember it being that weird and unintuitive.
Does anyone now a current tut that explains it and maybe some example apps? I keep finding firebase stuff. Is this the current way how to do push notifications?
Thanks
Hello,
a few years ago I made an app in B4A that used the google push API. Now I am working on a new app that also needs push notifications. But I can not figure out how it all works. I searched a
million times but don't get any proper tutorial on how to even activate that and get the API key for the push notifications. I can not remember it being that weird and unintuitive.
Does anyone now a current tut that explains it and maybe some example apps? I keep finding firebase stuff. Is this the current way how to do push notifications?
Thanks
A simple, B4A + B4i, example based on: B4A: https://www.b4x.com/android/forum/threads/firebasenotifications-push-messages-firebase-cloud-messaging-fcm.67716/ B4i: https://www.b4x.com/android/forum/threads/firebasenotifications-push-messages-server-not-required.68645/#content It receives push...
Updated tutorial: https://www.b4x.com/android/forum/threads/b4x-firebase-push-notifications-2023.148715/ Clarification: The nice thing about FCM is that your app doesn't need to run in order to receive messages. The FirebaseMessaging receiver will be started by the OS when a new message...
Thanks for the answers. So I got it so far as to receive a notification on in my app. But there is no data in the notification. Also I need to address one individual phone. So how can I obtain the device ID and send it to my server to store together with a user profile?
What I want to do is that a user logs in to a website and do stuff. When done I would like to alert that users phone. I got a php script to do the API request but I am missing the device ID.