I implemented Remote Push notifications for my app. I can receive Push notifications just fine.
However my goal is to execute some code automatically when Remote Notification Arrives on my iphone.
For example i have a Google Nest mini Speaker. I would like to send Push notifications to my iPhone, which should trigger a "Audio Playback" on my Google mini speaker.
I got it to work, only if user TAPS the Notification Banner, however I would like to automate it, whether user taps the notification banner or not.
I have the same exact logic working on Android, however for ios i am having issues when it comes to handle push notification.
So Question is, it it even possible to receive a remove notification and trigger something automatically?
Post
Replies
Boosts
Views
Activity
My app is getting Push Notifications. What I want to do is...as soon as I get a Notification, Phone should Cast a audio file to Local Google Nest Mini Speaker (Within LAN). Currently my users need to Tap on the notification to trigger the audio file. I want to Automate it.
I tried to apply the Login on "DidReceiveRemoteNotification" Event. However it plays audio file only when user Opens the App.
Any advise would be helpfull.
Thanks