Skip to content

Commit c0bf0e5

Browse files
committed
update
1 parent bf30788 commit c0bf0e5

File tree

5 files changed

+39
-13
lines changed

5 files changed

+39
-13
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@
873873
href: ./canvas-apps/accessible-apps-content-visibility.md
874874
- name: Announce dynamic changes with live regions
875875
href: ./canvas-apps/accessible-apps-live-regions.md
876+
- name: Send notifications from an app
877+
href: ./canvas-apps/add-notifications.md
876878
- name: Experimental and preview features
877879
href: ./canvas-apps/working-with-experimental-preview.md
878880
- name: Save and publish an app

powerapps-docs/maker/canvas-apps/add-notifications.md

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,72 @@
11
---
2-
title: Send a push notification | Microsoft Docs
3-
description: Learn how to send native push notifications to an app in Power Apps.
2+
title: Send a push notification from a canvas app. | Microsoft Docs
3+
description: Learn how to send push notifications from a canvas app in Power Apps.
44
author: kavishi
55
ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom: canvas
88
ms.reviewer: tapanm
9-
ms.date: 08/20/2020
9+
ms.date: 10/23/2020
1010
ms.author: kaagar
1111
search.audienceType:
1212
- maker
1313
search.app:
1414
- PowerApps
1515
---
16-
# Send a push notification in Power Apps
16+
# Send notification from an app
1717

18-
Push notifications are used in mobile apps to engage app users and help them prioritize key tasks. In Power Apps, you can send notifications by using the Power Apps Notification connector. You can send native push notifications to any app that you create in Power Apps.
18+
You can send a push notification from one app to another or to the same app. In canvas apps, you can send notifications by using the Power Apps Notification connector.
1919

20-
## Send a notification from an app
21-
You can send a push notification from one app to another or to the same app.
20+
In this article, the sample app used for notifications is built from the default **Case Management** app template.
2221

2322
1. In [Power Apps](https://make.powerapps.com?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc), go to the app to which you want to send push notifications.
24-
2. On the **Details** tab, copy the **App ID** of that app.
2523

26-
![Get App ID](./media/add-notifications/grab-id.png)
27-
3. On the **Connections** tab, create a connection to the Power Apps Notification connector, and paste in the app ID from the previous step.
24+
1. Copy the app ID. More information: [Get an app ID](get-sessionid.md#get-an-app-id)
2825

29-
![Create connection](./media/add-notifications/create-connection.png)
30-
4. Add the connection to the trigger app.
26+
1. In the left pane, select **Data** - **Connections**.
27+
28+
1. Edit the app that you want to send the notifications from. More information: [Edit an app](edit-app.md)
29+
30+
1. Select **View** - **Data sources**.
31+
32+
1. Select **Add data source**.
33+
34+
1. Select **New Connection**.
35+
36+
1. Select **Power Apps Notification**.
37+
38+
![Select Power Apps Notification](./media/add-notifications/select-powerapps-notification.png "Select Power Apps Notification")
39+
40+
1. Paste the app ID copied from the previous step.
41+
42+
![Paste the app ID](./media/add-notifications/paste-app-id.png "Paste the app ID")
43+
44+
1. Select **Connect**.
45+
46+
1. Add the connection to the trigger app.
3147

3248
In our example, we use the same app as the trigger app. The user who reassigns the case also triggers a push notification to the new case owner.
3349

3450
![Add connection](./media/add-notifications/add-connection.png)
51+
52+
1. In [Power Automate](https://flow.microsoft.com), create a trigger that specifies when the push notification is sent.
53+
54+
55+
3556
5. From the push notification connection, call the **SendPushNotification** method.
3657

3758
In our example, we trigger this notification by using the **OnSuccess** property in a form.
3859

3960
![Power Apps formula](./media/add-notifications/powerapps-function.png)
4061

4162
## Load a specific page and context when a user taps the notification
63+
4264
### Pass parameters
65+
4366
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.
4467

4568
### Set the start page
69+
4670
You can set your app to open, for example, the **Case details** page as soon as the app opens:
4771

4872
1. Add a **Timer** control, and set its **OnTimerEnd** property to this formula:
@@ -97,10 +121,10 @@ PowerAppsNotification.SendPushNotification(
97121
```
98122

99123
## Known limitations
124+
100125
* Currently, notifications aren't displayed on Power Apps Mobile for Windows Phone.
101126
* Currently, we don't provide push notifications for users who run apps only in a web browser.
102127
* Notifications show the generic Power Apps icon instead of a specific app icon.
103128
* Push notifications aren't currently supported for Model Driven apps.
104129

105130
For reference information, see [Power Apps Notification reference](https://docs.microsoft.com/connectors/powerappsnotification/).
106-
Loading
Loading

0 commit comments

Comments
 (0)