Push Notification with Unity in Android using App42 Backend as a Service

0 %
100 %
Information about Push Notification with Unity in Android using App42 Backend as a Service
Technology

Published on August 19, 2013

Author: shephertz

Source: slideshare.net

Description

Integrating App42 Push Notification service with Unity3D App. With Unity you can create rich, interactive entertainment or multimedia experience. This presentation will help you learn how to use Unity, Push Notification feature with App42 Backend as a Service APIs. Check out our website http://www.shephertz.com

Push Notification Service

Push Notifications Message Pop-Up Increase User Engagement Latest Updates Calendar Events

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

App42 Push Notification supports Coming Soon!! &

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 call No 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.

Creating a channel & scheduling Push messages through AppHQ

Push Analytics A very useful feature that can track:  How many Push Notifications were sent from your side  How many were delivered, and  Push Notification Campaign How many users opened the message 31% 100% Sent Delivered Opened These 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 message Thus, Analytics gives you a better insight of your Push Notification campaign.

Integrating with Unity on Android

A few easy steps Download the sample code from here. To 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(Click here)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.

Contd.. Open the PushSample.unity from your assets folder, it contains PushSample.cs & Constants.cs. Open Constants.cs file in Sample App and make these changes: • Change API-Key and Secret-Key that you have received. • Change Project-no. with your Google Project Number. • Change Game Object Name with your Game Object on which you have to receive Notification Call-Back from Android. • Change Call-Back Method with your method name on which you have to receive Notification Call-Back from Android e.g. Success.

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 tab. • Select desired user from registered User List and click on Send Message Button. • Send appropriate message to user by clicking Send Button. • Now you will get same message on your android device and your Call-Back Method of Unity3D. Sending messages using App42 API • Pass the User Id and Message in below method: 1 PushNotificationService pushService=App42API.buildPushNotificationService(); 2 pushService.sendPushMessageToUser(userId,message);

Sending a message through AppHQ console

Changing Default Package Name Default package name of App42 push unity sample project is com.shephertz.app42.android.pushservice. To change this package name you have to modify the library project and rebuild it for your own package name. Here are the steps to perform it: • Download the library project from here. • Import this project in your eclipse. • Change/refactor the package name of the android library project source with your desired game package name. • While refactoring, select Update fully qualified names in non-Java text files (Forces Preview) option. This will modify AndroidManifest.xml file too with new package name.

Contd.. • Cross check AndroidManifest.xml file for changes in package name; If not done, do it manually. • Build your library project. • Copy App42PushService.jar and AndroidManifest.xml file from your bin folder of library Project folder and replace/paste it into AssetspluginsAndroid of your Unity project. • In Unity Project, select File option from menu and than select Build settings. Click on Player Settings-->Other Settings—Identifie-->BundleIdentifier modify default package name (com.shephertz.app42.android.pushservice) with your package name that you have used while building the library project.

IT IS THAT SIMPLE!!!

Some useful links Getting Started: Downloads: Quick Start Guide App42 Cloud SDKs Sign-up for Free App 42 Modules Game Development Center Blogs: Concepts: Why BaaS? Backend as a Service Push Notification for iOS Massive Multiplayer Gaming Engine Push Notification for Android App Analytics Real-time Multiplayer Games using Unity3D Integrating Facebook in your Android App Products: Making a Turn-based Game App42 Cloud APIs - BaaS Using Query Interface AppWarp – Multiplayer Gaming Engine When to use NoSQL? AppHQ – Management Console Add ‘Social’ to your Game AppHawk – Project Management Tool AppClay – Custom App Builder

Links for Reference : http://www.shephertz.com http://api.shephertz.com http://appwarp.shephertz.com http://app42paas.shephertz.com Contact: sales@shephertz.com Skype: ShepHertz Follow us on:

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Steps to Integrate Push Notification with Unity Sample on ...

... to Integrate Push Notification with Unity ... App42 Backend as a Service APIs. App developers can make their games more realistic and can provide ...
Read more

Push Notification on Unity Android App - ShepHertz

... Schedule Notification, Push Analytics using App42 Unity ... Unity Android Push Notification. ... App42 Push Notification Service has introduced ...
Read more

App42 Push Notification API - Backend as a Service

Gaming Backend; Social Integration; Push Notification; ... import com.shephertz.app42.paas.sdk.android.push ... push_notification_service.send_push ...
Read more

Android Push Notification using App42 Mobile Backend as a ...

Integrating App42 Push Notification Service with Android App. App42 uses GCM (Google Cloud Messaging) to send Push Notifications on Android devices. This ...
Read more

Push Notifications in Android Platform - Stack Overflow

Push Notifications in Android ... There is a free push service and api for android, ... Implimenting Parse.com push notification in unity for android ...
Read more

Take a Tour for Mobile App Developer Mobile Backend as a ...

Your mobile App idea with App42 Backend as a Service ... Push Notification. Use App42 backend with your ... Android Apps using C# and ...
Read more

Push Notifications | ShepHertz App42 Blog

Push Notifications have always been the ... in Backend as a Service | Tagged app42 web push, ... androis, push notification for ios, Push Notifications, ...
Read more

Android Push Notifications | Parse

Push notifications let your application notify a user of new messages or events even when the user is not actively using your application. On Android ...
Read more