Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

when accepting the push notification on the mobile ,it should direct to the screen2 instead screen1

(0) ShareShare
ReportReport
Posted on by 496

Hi ,

I have a app ,it send the push notifications using a flow .. When it execute through the app , recipient  get the notification , but when accepted notification , it will re-direct to the app main screen .. I want it to re-direct to the screen2 in the same app ..

 

pls advice 

 

rgds

AD 

 

Categories:
  • ajithd6368 Profile Picture
    ajithd6368 496 on at
    Re: when accepting the push notification on the mobile ,it should direct to the screen2 instead screen1

    Fredrik ,

     

    really appreciate you advice on my request ..

     

    rgds

    Ajith 

  • ajithd6368 Profile Picture
    ajithd6368 496 on at
    Re: when accepting the push notification on the mobile ,it should direct to the screen2 instead screen1

    Hi Fredrik ,

     

    used below statement , but get errors 

     

    ajithd6368_0-1665552657583.png

    appreciate your advice 

    rgds

    AD

  • StretchFredrik Profile Picture
    StretchFredrik 2,610 on at
    Re: when accepting the push notification on the mobile ,it should direct to the screen2 instead screen1

    When you trigger the notifications you have an option to include parameters,  for example like this:

     

    PowerAppsNotification.SendPushNotification({recipients:[DataCardValue14.Selected.Email], message:"Task " & Upper(DataCardValue9.Text) & " is assigned to you.",
     params:[screen:"1", taskid:BrowseGallery1.Selected.ID]
     })
  • ajithd6368 Profile Picture
    ajithd6368 496 on at
    Re: when accepting the push notification on the mobile ,it should direct to the screen2 instead screen1

    Hi Fredrik ,

     

    would you pls explain what is --parameter--.. do we need to send this on the push statement  to get the same back while accepting ?

     

    rgds

    AD

  • StretchFredrik Profile Picture
    StretchFredrik 2,610 on at
    Re: when accepting the push notification on the mobile ,it should direct to the screen2 instead screen1

    Hello,

     

    i would do something like this:

     

    1. App OnStart, If( !IsBlank( --parameter--), Set( vSelectedRecord, LookUp( dataSource, ID=Param(ID) ); Navigate(viewScreen, Transition.CoverRight))

    2. App opens, checks if Param IsBlank

    3. If it's not blank Sets variable and navigates to View screen

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard