Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Related to this thread:
If this is possible then, as I am newbie here, I also want Push notifications for my Android device.
Solved! Go to Solution.
Hi,
There was a similar question before - "Pushing Notification to Android devices":
https://community.ptc.com/t5/ThingWorx-Developers/Pushing-Notification-to-Android-devices/td-p/624383
https://community.ptc.com/t5/ThingWorx-Developers/Pushing-Notification-to-Android-devices/td-p/622817
Hi,
There was a similar question before - "Pushing Notification to Android devices":
https://community.ptc.com/t5/ThingWorx-Developers/Pushing-Notification-to-Android-devices/td-p/624383
https://community.ptc.com/t5/ThingWorx-Developers/Pushing-Notification-to-Android-devices/td-p/622817
To push notifications to Android devices, you can utilize Firebase Cloud Messaging (FCM), which is a popular solution for sending notifications to Android (and also iOS) devices. Here's a high-level overview of the steps involved:
Set up Firebase: Create a Firebase project in the Firebase console (https://console.firebase.google.com/) and register your Android app.
Integrate FCM in your Android app: Add the necessary Firebase dependencies to your Android project and configure your app to receive FCM tokens.
Obtain FCM Token: Retrieve the FCM token from the Android device using the FirebaseInstanceId API. This token uniquely identifies the device.
Set up your server: Implement a server-side component that will send the notifications. This server should communicate with the FCM server using the Firebase Admin SDK or the FCM HTTP v1 API.
Send notifications from server to devices: Using the FCM token obtained earlier, your server can send push notifications to specific devices or device groups using the FCM server API.https://aeroapp.net/fmwhatsapp-download-apk/
Handle notifications on the Android app: Implement the necessary logic in your Android app to receive and handle the push notifications using the FirebaseMessagingService class. This includes displaying notifications in the notification tray, handling click actions, and processing the received data.