cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ganeshsanap
Memorable Member
Memorable Member

Push notification not redirecting user to different screen when app is already opened in background

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?

1 ACCEPTED SOLUTION

Accepted Solutions
ganeshsanap
Memorable Member
Memorable Member

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:

Start new session of app on click of push notification or provide trigger/function to identify when ... 


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

Blog site 

View solution in original post

3 REPLIES 3
priyeshwagh777
Kudo Collector
Kudo Collector

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!!

@priyeshwagh777 

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

Blog site 

ganeshsanap
Memorable Member
Memorable Member

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:

Start new session of app on click of push notification or provide trigger/function to identify when ... 


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

Blog site 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,026)