Current configuration:
I am sending a push notification from Power Automate to open the canvas app. It is working fine when the app is not opened in the background.
Also, it is redirecting me to the correct screen as I have written code in OnStart property of App to navigate to another screen based on the parameter passed via push notification.
Issue:
If the app is already open in background or it is in-focus, the app screen is not getting refreshed as well as not redirecting to the different screen as configured.
I am suspecting that when the app is already opened, push notification is not triggering OnStart again & it is continuing the already opened session.
Is there any way to solve this issue (maybe writing code somewhere else instead of OnStart of App)? Or can we start a new session of the app on click of push notification?
Solved! Go to Solution.
I have opened a support ticket with Microsoft for this issue & they told me, this is the current behavior of push notifications. It just supports opening the app on click of push notification & starts the existing session.
They also suggested to create a new idea for this feature request. Below is a link to the idea I posted on this forum. Anyone reading this post, please vote & support this idea:
Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it 👍
Best Regards,
Ganesh Sanap
Hi Ganesh,
Not sure if this might be able to help you, but I tried something with Timer control. Maybe you can try to put a Timer and put about 10ms of delay or so.
Let me know if this helps you - https://d365demystified.com/2021/05/15/navigate-screen-automatically-based-on-timer-in-canvas-power-...
Let me know if this helps you in anyway!!
I tried this using timer control but it is not working as expected. I need to open the particular screen in the app on click ok push notification. But it will not work when app is already running in background.
Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it 👍
Best Regards,
Ganesh Sanap
I have opened a support ticket with Microsoft for this issue & they told me, this is the current behavior of push notifications. It just supports opening the app on click of push notification & starts the existing session.
They also suggested to create a new idea for this feature request. Below is a link to the idea I posted on this forum. Anyone reading this post, please vote & support this idea:
Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it 👍
Best Regards,
Ganesh Sanap
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
201 | |
71 | |
49 | |
43 | |
30 |
User | Count |
---|---|
255 | |
122 | |
86 | |
84 | |
84 |