cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

PushNotifications params navigate specific page

Hello,

how can I navigate to a specific screen from a push notification ?

get error on navigate params.

thanks

NotificationPowerApps.SendPushNotification(
{
recipients: ["test@test"];
message: "welcome to screen 1";
openApp: true;
params:Navigate(BrowseScreen1;ScreenTransition.Fade)


}
)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Hi @mjfernandes ,

After , i tried this issue , i suggested the above way.

Basically In the Push Notification Param aspect of the Table so, in my scenario, I just use the below code.

PowerAppsNotification.SendPushNotification(
	{
		recipients: [User().Email],
		message: "message in the notif toast",
		params: Table({key:"varScreenName", value:Navigate(Screen1)}),
		openApp: true
 	}
)
//before use the COde please cross check the connect you added or not.

Key is just for formate, 

when I tried this, I just tap on the notification and it is redirected me to screen1 as per my Code.
Thanks,

View solution in original post

5 REPLIES 5
Highlighted
Resident Rockstar
Resident Rockstar

Hi @mjfernandes ,

you can use code like below to open a specific screen on click of a push notification.

 

PowerAppsNotification.SendPushNotification(
	{
		recipients: [User().Email],
		message: "message in the notif toast",
		params: Table({key:"varScreenName", value:Navigate(Screen1)}),
		openApp: true
 	}
)

 


Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

Highlighted

Thanks for your response.

Can you tell me if you try on your app and if it's working, because maybe I´m doing something wrong.

Doesn't work. I create a label with Param("vartest") and still get an error ask for the key value.

 

 

 

Highlighted

Hi @mjfernandes ,

After , i tried this issue , i suggested the above way.

Basically In the Push Notification Param aspect of the Table so, in my scenario, I just use the below code.

PowerAppsNotification.SendPushNotification(
	{
		recipients: [User().Email],
		message: "message in the notif toast",
		params: Table({key:"varScreenName", value:Navigate(Screen1)}),
		openApp: true
 	}
)
//before use the COde please cross check the connect you added or not.

Key is just for formate, 

when I tried this, I just tap on the notification and it is redirected me to screen1 as per my Code.
Thanks,

View solution in original post

Highlighted

 

hello when insert params the code stay like this with errors and doesn't work.

Captura de ecrã 2020-10-23, às 21.47.35.png

Highlighted

Mr VijayTailor,

Thank you. The code works perfectly. Finally found the reason why didn't work, the problem is that the Browser from the computer I was working on,  wherein  Portuguese and when I change for an English browser everything works. Crazy things from Microsoft Edge.

Thank you and hope that can help someone with the same issue.

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,677)