Push Notifications
  • 08 Feb 2023
  • 2 Minutes to read
  • Contributors
  • Dark
    Light

Push Notifications

  • Dark
    Light

Article Summary

Push Notifications

VIDEO HERE (entails the installation of an unmanaged package, page layout modification, creation of Custom Notification, Flow modifications, and mobile phone settings). 

If you intend to utilize Push Notifications for mobile, please enable the proper permissions here and be sure you’ve downloaded the Salesforce mobile app on your device.

In the steps below we’ll send a push notification to a Contact Owner when an incoming text arrives.

Install the Custom Notification Unmanaged Package

From your Salesforce instance, append your Salesforce URL with the following string: packaging/installPackage.apexp?p0=04t4W000002UzMa

  1. Remove the contents of the URL up until lightning/and paste the above. 
    1. For example, your URL should now appear like this: https://tact.lightning.force.com/packaging/installPackage.apexp?p0=04t4W000002UzMa
  2. Click Enter
  3. During install, select Rename conflicting components in this package
  4. Install for Admins Only:

Update Notification Settings

  1. From Setup, in the quick find box, search and select Notification Delivery Settings.
  2. Scroll down to the bottom of the page to Custom Notification Types.
  3. Find Incoming SMS and use the dropdown menu on the right to click Edit.
  4. Check both checkboxes under Applications, then click Save.

Modify your Application Settings page layout

  1. Navigate to the MogliSMS Lightning app.
  2. Navigate to the Application Settings tab.
  3. Check the Platform Events for Incoming SMS Enabled box, then click Save.

Not seeing this checkbox? Add it to your page layout in Object Manager > Application Settings > Default Page Layout > Drag the field onto the page > Save.

Gather the Custom Notification ID

  1. Click the gear icon in the upper right corner of your screen and select Developer Console.
  2. Select the Query Editor tab, check the Use Tooling API checkbox, and paste the following: SELECT Id,CustomNotifTypeName FROM CustomNotificationType
  3. Click Execute, then copy the ID from the Query Results (Incoming SMS) to a notepad.

Update the Flow in Flow Builder

  1. In the gear icon, click Setup, then search and select Flows.        
  2. Open the Incoming SMS Alert Summer 21 flow.                      
  3. Once the flow builder is open, double click the Action element to edit it:
  4. Paste the ID from the previous section into the Custom Notification Type ID field:
  5. Click Done, Save As, then Save.                                
  6. Click Activate.                                                            

Configure Mobile Settings

  1. Ensure that you and your users have downloaded the Salesforce mobile app on your devices
  2. Ensure that your mobile device’s settings allow for push notifications on Salesforce
  3. From within the Salesforce mobile app, access your profile (avatar or picture) > Settings > Push Notification Settings > turn on for Incoming SMS
  4. Send an incoming text to one of your Gateways (be sure you’re the owner of your test Contact).
  5. Your mobile device should display a notification like this:
  6. Tapping the push notification will open the Contact record within the Salesforce mobile app so that you may continue the conversation.

Was this article helpful?