This business is awesome! Thats the cloud, IT, business solutions, implementation, salesforce, mobile and colaboration business of course!

Everything is just ticking along fine, and then you spin round and realise that everything has changed! Again!

There are a number of fundamental changes I’m noticing here:

  •  Mobile notifications, push, we have easier access to it.
  • The App democracy, we can now get much more of what we need via an app or service for a few $
  • Devices, these are now our personal assistants and we need them to tell us stuff as opposed to having to check for stuff.

SO… I have been looking for an easy way to send out push notifications from Salesforce for a while. I was excited to learn of the new Push Notifications feature coming in the Salesforce Summer 14 release.

With some creative thought and the App democracy, we can now build out a process to deliver push notifications, in real-time, to any device, (well…  iOS, Android and desktop) from a Salesforce trigger which executes in accordance with your business process logic.

This is what I did:

Requirement:

When we get a new AppExchange install of one of our apps, we need to send instant mobile notification push message to a group of users.

(But your requirement could just as easily be, notify all sales managers when a high value opportunity is won.)

Solution:

1. Configure Leads. The Salesforce AppExchange will push out a new lead to your org if setup. Set this up!

2. Create an account on Pushover. We are using Pushover as the 3rd party notification service it handles well and provides a certain level of free developer pushing.

– Create an App within Pushover, give it a name and an Icon, and grab the API token. Thats all!
– Install the Pushover App on your devices
– Grab the user api/id from the App settings on the device
– Add these users to the Group configuration in Pushover

2. Build a trigger on the Lead object to fire after insert and inline with specified criteria.

3. Make an API callout to pushover notification service that will handle the gubbins of interacting with the Google Cloud Notifications (GCM) and Apple Push Notification Service (APN).

The API docs are here for pushover and you can easily test the service by making a Post request through Runscope. … below is an example call from runscope. Easy

runscope pushover test

 

The apex pushoverHandler callout code:

4. Wait for the Notifications to come in whilst you sit back and run your business from your Phone!

pushover notifications2

 

The overall integration architecture is show below, and provides an easier solution than building your own native iOS and Android apps!…

pushover-process2

David Cameron

Close
Go top

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close