Skip to content

Commit 67dc680

Browse files
authored
Update power-apps-mobile-notification.md
1 parent f5cef72 commit 67dc680

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

powerapps-docs/mobile/power-apps-mobile-notification.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,30 @@ When you trigger a push notification from a flow, you can send the notification
120120
9. Select **Flow checker** to check for error or warnings.
121121
10. Test the flow by selecting **Test** and follow the prompts.
122122

123+
## Perform an action when a user taps the notification
124+
125+
### Pass parameters
126+
127+
Your push notification can pass specific parameters to the app. For example, to read the **CaseID** value, use *Param("CaseID")*. To quickly identify this parameter, add a **Label** control to your app. Set the **Text** property of that control to **Param("CaseID")**. If the user opens the app from the **All apps** list, the value is empty. If the user opens the app from another ___location on the device, the value is populated with the **CaseID** value.
128+
129+
### Set the start page
130+
131+
You can set your app to open, for example, the **Case details** page as soon as the app opens:
132+
133+
1. Add a **Timer** control, and set its **OnTimerEnd** property to this formula:
134+
135+
`Navigate(EditCase, ScreenTransition.None)`
136+
137+
1. (optional) Hide the **Timer** control by setting its **Visible** property to **false**.
138+
139+
1. Set the **OnVisible** property of the screen to **Timer.Start()**.
140+
141+
> [!TIP]
142+
> It's a good idea to create a unique first page in the app for the notification:
143+
>
144+
> 1. Create an empty page that your app doesn't already open, add a **Text Input** control, and set its **timer.Duration** value.
145+
> 2. When you create the app, set the timer to a non-zero value. When you're ready to publish the app, set the value to **0** to immediately trigger the timer.
146+
123147

124148
## Known limitations
125149

0 commit comments

Comments
 (0)