Repository navigation
Are push notifications to code apps (via Power Apps Notification V2) supported? #511
Unanswered
Shashank Taneja (tanejashashank)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Now that code apps open in the Power Apps mobile app, I tested sending push notifications to one. It works, but only through a workaround, so I’d like to know if this is supported before building on it.
What I did
Power Automate flow with the “Send push notification V2” action, Mobile app set to Power Apps
The code app doesn’t appear in the “Your app” dropdown, so I used a custom value:
{"appIdentifier":"","type":"CanvasApp","displayName":""}
Since the recipient and message fields don’t load with a custom value, I passed them in the Payload/dynamicParam field:
{"recipients":[""],"message":"Test","openApp":true,"params":{"woId":"12345"}}
What happened
The notification arrived on my phone
Tapping it opened the code app
Params: [arrived in getContext() / arrived in window.location.search / did not arrive]
Questions
Is sending notifications to code apps supported, or did this work by accident?
Is there a plan to list code apps in the “Your app” dropdown?
What’s the recommended way for a code app to read params passed from a notification?
All reactions