You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Perform an action when a user taps the notification
62
-
63
-
### Pass parameters
64
-
65
-
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.
66
-
67
-
### Set the start page
68
-
69
-
You can set your app to open, for example, the **Case details** page as soon as the app opens:
70
-
71
-
1. Add a **Timer** control, and set its **OnTimerEnd** property to this formula:
72
-
73
-
`Navigate(EditCase, ScreenTransition.None)`
74
-
75
-
1. (optional) Hide the **Timer** control by setting its **Visible** property to **false**.
76
-
77
-
1. Set the **OnVisible** property of the screen to **Timer.Start()**.
78
-
79
-
> [!TIP]
80
-
> It's a good idea to create a unique first page in the app for the notification:
81
-
>
82
-
> 1. Create an empty page that your app doesn't already open, add a **Text Input** control, and set its **timer.Duration** value.
83
-
> 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.
Copy file name to clipboardExpand all lines: powerapps-docs/mobile/power-apps-mobile-notification.md
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -112,14 +112,45 @@ When you trigger a push notification from a flow, you can send the notification
112
112
-**Recipient Items-1**: Select how the flow is triggered.
113
113
-**Message**: Enter the notification message.
114
114
-**Open app**: Select whether to open the app or not when the user selects the notification.
115
-
-**Parameters**: Key-value parameters to pass with the notification. Your push notification can pass specific parameters to the app. These can be further processed in the app to open a specific page and load a specific state. For more information, see [Load a specific page and context when a user taps the notification](https://docs.microsoft.com/powerapps/maker/canvas-apps/add-notifications#load-a-specific-page-and-context-when-a-user-taps-the-notification).
115
+
-**Parameters**: Key-value parameters to pass with the notification. Your push notification can pass specific parameters to the app. These can be further processed in the app to open a specific page and load a specific state. For more information, see [Perform an action when a user taps the notification](power-apps-mobile-notification.md#perform-an-action-when-a-user-taps-the-notification).
116
116
117
117

118
118
119
119
8. When you're done, select **Save**.
120
120
9. Select **Flow checker** to check for error or warnings.
121
121
10. Test the flow by selecting **Test** and follow the prompts.
122
122
123
+
## Perform an action when a user taps the notification
124
+
125
+
### Pass parameters
126
+
127
+
For canvas apps, you can pass key-value pairs using the **Parameters** field as JSON. For example, if you wanted to pass the CaseID, you would put the following as **Parameters**:
128
+
` { "CaseID": 42 }`. You can also use dynamic values from earlier steps as shown below.
129
+
130
+

131
+
132
+
### Read parameters
133
+
134
+
To read the passed parameters, use Param("ParameterName"). 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.
135
+
136
+
### Set the start page
137
+
138
+
You can set your app to open, for example, the **Case details** page as soon as the app opens:
139
+
140
+
1. Add a **Timer** control, and set its **OnTimerEnd** property to this formula:
141
+
142
+
`Navigate(EditCase, ScreenTransition.None)`
143
+
144
+
1. (optional) Hide the **Timer** control by setting its **Visible** property to **false**.
145
+
146
+
1. Set the **OnVisible** property of the screen to **Timer.Start()**.
147
+
148
+
> [!TIP]
149
+
> It's a good idea to create a unique first page in the app for the notification:
150
+
>
151
+
> 1. Create an empty page that your app doesn't already open, add a **Text Input** control, and set its **timer.Duration** value.
152
+
> 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.
0 commit comments