Mobile push messaging should be an essential part of the real-time enterprise and now it's easy to achieve with sapnwncloud . Mobile push messaging enable you to instantly push important business event to the mobile phones of decision makers in the business. They can then take the appropriate action.
I hereby release two open-source projects that will handle most of the complexity involved in such scenarios. It's released on github under Apache 2.0 license,and and therefore should be very compatible for most purposes. Github also makes it dead easy and encourages you to fork the project, so please do!
For now, the projects supports Android through Google Cloud Messaging. But with some assistance from the community, I'm sure we will be able to support iOS devices (Apple Push Notification Service) and other emerging mobile platforms soon.
The reference android app implementation is available here (link to android .apk)
The reference backend implementation is hosted on #sapnwcloud https://androidgcmbackendp013234trial.nwtrial.ondemand.com/nwcloud-androidgcm-backend/
Hosted at https://github.com/elsewhat/nwcloud-androidgcm-backend
The project provides a backend for handling the mobile push messages.
It has the following responsibilities:
This project uses JPA for persistence and Jersey for REST interface.
Hosted at https://github.com/elsewhat/nwcloud-androidgcm-app
This android app is a reference app that provides two main functionalities:
When the app is started, it contacts Google's GCM service and receives a registration key. This registration key is specific for the device and the Google API project we use (shared API project for app and the backend). The registration key and the email address of the user is then sent to the REST interface of the backend. We use email as an indicator of the device that should receive the mobile push message.
The app then fetches a list of all the emails that are registered in the backend, and allows you to type a message.
When you select to send the message, the app will send it to the backend using the REST interface. The backend will then subsequently send it to the recipient over the Google Cloud Messaging service (for this it uses the registration key of the recipient).
Please note that this app only illustrates one possible way to trigger a mobile push message through the backend.
This project uses google-http-client-java for performing REST (it's transparent serialization from Java objects to JSON and back is awesome)
You do need an app on the device in order to register to the push service. However, once it is registered the push message could be initiated from anywhere.
The #sapnwcloud backend provides a REST interface over HTTP, so all a potential client needs to support is plain HTTP.
Here are some examples that can be implemented easily:
Enjoy, and on behalf of the SAPMentors; keep sharing!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |