Telerik blogs
I am happy to announce that Icenium Everlive now supports the ability to send push notifications to iOS, and Android devices. Using Everlive for push notifications removes the complexity of integrating with multiple vendor-specific notification services and gives you an easy to use client SDKs.

Sample Notification for Everlive Push Notifications

Push notifications are a convenient way to drive customers back to your app and increase the overall engagement and satisfaction of your app. They can be used for notifying your users for marketing campaigns, promotions, reminders or chat message alerts. You can send any type of data you want to your app and process it on the device in any way you want even if your app is currently not running.

Support for iOS, Android and Windows Phone

Everlive removes the complexity of integrating your app with Apple Push Notification Services (APNs), and Google Cloud Messaging for Android (GCMto deliver push notifications to your apps. Everlive supports all official type of notifications provided by each vendor both in our SDKs and REST Services:

  • Android via GCM – notification key, key name, collapse key, data, delay while idle
  • iOS via APNs - alert, badge, sound actions

Powerful targeting

Also included is an easy-to-use user interface in the Everlive Portal for sending push notifications to your apps. You can segment your push notification message to the following criteria based on:

  • Device information such as Platform Type, Platform Version, Locale and others.
  • User information such as Registration Date, Verified Email, Display Name and all other related information to the user profile.
  • Custom parameters defined by the developer for user specific preferences defined in a key value pair like Age : 29, City : London, Interests : Sport News etc.

Updated JavaScript SDK with built-in PhoneGap support - as easy as 1,2,3

 

The new JavaScript SDK supports push notifications for hybrid apps for Android and iOS only. The SDK relies on Cordova.js (PhoneGap) for the functionality and push notification plugin to handle the push messages. Just follow these three steps to get it working:

Step 1: Initializing the device

The first thing you need to do in your app is to initialize the device for push notifications. This will prompt the user to confirm that he allows push notifications for your app:
 
var el = new Everlive('${ApiKey}');
el.push.currentDevice().enableNotifications(pushSettings, successCallback, errorCallback);

Once this method completes successfully, the device has obtained a push token and is ready to be registered in Everlive.
 

Step 2: Registering the device in Everlive

The next step is to register the device in Everlive where you will be able to keep track of all devices registered for push notifications.
 
el.push.currentDevice().register(customParameters, successCallback, errorCallback);

This method will gather all the required device data and register the device in Everlive. As you can see, you can also specify custom parameters for the registration. The customParameters object does not have any restrictions, it is just a standard JavaScript object. It is used to keep information about the user such as Age, City, Interests and so on. Once you pass this information to Everlive, you can easily create a segment of users based on all parameters stored in this object.

Step 3: Sending push notifications

You have the option to send push notifications both from the user interface of the Everlive Portal, or from a client device using our SDKs or REST services. Here is a code sample demonstrating how you can do this using our JavaScript SDK:

el.push.notifications.create({ Message:'You have a meeting in 15 minutes - Everlive Push Notifications.' },
    function(data){
        alert(JSON.stringify(data));
    },
    function(error){
        alert(JSON.stringify(error));
    }
);

Sample Notification for Everlive Push Notifications
Hybrid app and comprehensive docs to get you started

Our team has created a sample app for Push Notifications that demonstrates how you can initialize, register and send push notifications to your app in Icenium. Note that you have to configure your certificates in both Icenium and Everlive to be able to send push notifications.

Stay tuned for more exciting news coming from our team. If you haven't experienced the power of Icenium, you can sign-up for free now and see just how easy it is to get push notifications working for your app.


About the Author

Hristo Borisov

Hristo Borisov (@hristoborisov) is currently a product line manager in Telerik leading all cloud technologies part of the Telerik Platform after spending more than 6 years with the company. A passionate advocate of applying lean startup practices to existing organizations, Hristo is on the quest for discovering scalable and sustainable business models through product and customer development using tools like MVPs, Pivots, and Lean Business Model Canvases.

Comments

Comments are disabled in preview mode.