Open Whisk integration of Push Notification Service on Bluemix

Open Whisk integration of Push Notification Service on Bluemix

Posted on 2016-07-07 16:16:46 +0530 +0530
In Blog,
Tags : pushnotifications openwhisk bluemix

Do you want to send push notifications to your mobile app users in response to an event? This is now available out of the box with Push Notification Service and the event-driven compute service OpenWhisk on Bluemix.

To see how the Push Notification service works with OpenWhisk, try out a sample customer feedback scenario. It demonstrates a retail customer feedback scenario together with an ecosystem of services on Bluemix as depicted in the following diagram:

Retail scenario architecture

In this scenario, a retailer is soliciting feedback on a recent purchase from the customers. Once the customer provides feedback, the feedback is analyzed using Watson Tone Analyzer service and a relevant message is delivered using the Push Notification Service. If the customer is disappointed as assessed by the tone, then the retailer may provide some discount/return proposal.

Push Notification service integration into OpenWhisk opens up a whole new set of possibilities to send mobile push notifications on various events. It is exposed via the sendMessage action which sends notifications to registered devices.

It opens up a whole new set of possibilities to send mobile push notifications on various events.

For example:

  • Send notifications to passengers on flight updates.
  • Send transaction receipts to customers upon transaction.
  • A simple one like notification of a new Slack post using Slack APIs and the Push Notification packages of OpenWhisk together.

The feed can trigger events upon a device subscription/unsubscription or user subscription/unsubscription. The device subscription/unsubscription could be an important event to trigger alternate actions.

For example:

  • An insurance provider uses mobile notifications as a primary channel for communicating messages to its clients. If a user has uninstalled the app (triggers “device unregistered” event) from the mobile, the provider responds by sending a message to the user through alternate channels.

  • A retailer runs sales campaign by creating tags and letting interested users subscribe to them; the user subscription could be an important event to send targeted offers.

If you have questions, feel free to post a comment below or on Stack Overflow with the #openwhisk and #ibm-bluemix tags.