android push notification using app42 mobile backend as a service

Download Android Push Notification using App42 Mobile Backend as a Service

Post on 10-May-2015




4 download

Embed Size (px)


Integrating App42 Push Notification Service with Android App. App42 uses GCM (Google Cloud Messaging) to send Push Notifications on Android devices. This presentation will help you learn how to use Push Notification feature with App42 Backend as a Service APIs. Check out our website


  • 1.Push Notification Service

2. Push NotificationsMessage Pop-UpIncrease User Engagement Latest UpdatesCalendar Events 3. Benefits of Push Notification Increases user-engagement e.g. In a turn-based game like Tic-Tac-Toe, it can notify a user of his turn (suppose he gets a phone call in between and forgets that he was playing!!) Allows to send messages to users even when the app is not running; thus helps in reminding them of your App Helps to build a fan community around your game by pushing to a targeted audience like your regular gamers Allows an App to notify its users of new events without needing to actually open it, i.e. by a sound or a screen pop up 4. Why App42 Push Notification? Our Push Notification API can be used to send crossplatform push messages to devices running on iOS, Android and Windows Phone with a single API callNo infrastructure & scalability worries Send Image/Text/URLs text-based Push Notifications Send messages in Channel Subscription Mode Send Scheduled Push as per Time-Zone Push Analytics Analyze your Push Campaign with App42 Analytics Evaluate the number of Push messages sent, delivered and opened. 5. Integrating With Android 6. A few easy stepsTutorial videoTo use Push Notification Service in your App, go to Google console, click on services option and enable Google Cloud Messaging for Android service.Click on API Access tab and create a new server key for your application with blank server information. Go to AppHQ console and click on Push Notification and select Android setting in Settings option. Select your App and copy server key that is generated by using Google API console, and submit it. 7. Contd.. Download the zip file (sample app) from here and import it in eclipse. Open file in sample app and make these changes:Replace API-Key and Secret-Key at line no. 18 and 19Replace your user-id by which you want to register your application for Push Notification at line no. 20Replace Project-no. with your Google Project Number at line no. 21 8. Testing Sending messages using AppHQ console After registering for Push Notification, go to AppHQ console, click on Push Notification and select application after selecting User tabSelect desired user from registered User List and click on Send Message ButtonSend appropriate message to user by clicking Send ButtonSending messages using App42 API Pass the User Id and Message in below method: 1 PushNotificationService pushService=App42API.buildPushNotificationService(); 2 pushService.sendPushMessageToUser(userId,message); 9. Sending a message through AppHQ console 10. Creating a channel & scheduling Push messages through AppHQ 11. Push Analytics A very useful feature that can track: How many Push Notifications were sent from your sideHow many were delivered, andPush Notification CampaignHow many users opened the message31%100%Sent Delivered OpenedThese analytics can be viewed from our AppHQ console.74%Why Push Analytics? When you use our Push Notification Service, each Push goes from the App42 server to GCM/APNS/MPNS and then to the user device. Delivery of Push Notification is not guaranteed even from the service provider Once delivered, there might be a chance that user just clears it without opening the messageThus, Analytics gives you a better insight of your Push Notification campaign. 12. Some useful links Getting Started:Downloads:Quick Start GuideApp42 Cloud SDKsSign-up for FreeApp 42 ModulesGame Development CenterBlogs: Concepts:Why BaaS?Backend as a ServicePush Notification for iOSMassive Multiplayer Gaming EnginePush Notification for AndroidApp AnalyticsReal-time Multiplayer Games using Unity3D Integrating Facebook in your Android AppProducts:Making a Turn-based GameApp42 Cloud APIs - BaaSUsing Query InterfaceAppWarp Multiplayer Gaming EngineWhen to use NoSQL?AppHQ Management ConsoleAdd Social to your GameAppHawk Project Management Tool AppClay Custom App Builder 13. Links for Reference : http://app42paas.shephertz.comContact: Skype: ShepHertzFollow us on: