Testing Your Connected App Push Configuration
Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
Connected Apps can be created in: Group, Professional,
Enterprise, Essentials, Performance,
Unlimited, and Developer Editions Connected Apps can be installed in: All Editions |
User Permissions Needed | |
---|---|
To send a push notification from the Test Push Notifications page: |
Author Apex AND Manage Connected Apps |
About the Send Test Notification Page
The Send Test Notification page uses information from your Apple Push Notification Service (APNS) or Firebase Cloud Messaging (FCM) for Android setup to configure a synchronous push mechanism. You select a device to receive the push notification by entering a connection token string. If you don’t know the token string, you can use the Search tool to select from the list of devices that are registered for your connected app. The Search tool automatically displays the five most recently registered devices. You can also enter a user’s name to search for devices that are registered to that user.
For Android FCM push notifications, you can select the Dry Run option to test your FCM setup. This option sends the notification to the FCM server but doesn’t forward it to a device.
You can use any JSON-formatted payload for a dry-run test. For example, you can start with something as simple as {"alert": "test"}.
Each push attempt returns a status message that indicates success or failure.
To reach the test page:
- In Setup, enter Apps in the Quick Find box, then select Apps.
- Click the name of your connected app.
- Click Send test notification next to Supported Push Platform. This link appears only if you’ve configured your connected app to support mobile push notifications.