SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
Push Notification Service
Increase User 
Engagement 
Calendar Events 
Message 
Pop-Up 
Latest 
Updates 
Push Notifications
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 
iOS 
Android 
Windows 
Unity 
Flash 
HTML 5 
Cocos2dx 
Corona.. And more
Our Push Notification API can be used to send cross- platformpush messages to devices running on iOS, Androidand WindowsPhonewith a single API call 
•Send Image/Text/URLstext-based Push Notifications 
•Send messages in Channel Subscription Mode 
•Send ScheduledPush as per Time-Zone 
No infrastructure & scalability worries 
Push Analytics•Analyzeyour Push Campaign with App42 Analytics 
•Evaluate the number of Push messages sent, delivered and opened 
Why App42 Push Notification?
Push for Marketing Automation 
Segment your Users and send targeted Push Notifications 
•Segmentation based on User Profile, Interests, Channel Subscription, etc. 
•Geo-Location based Push Notifications 
Track User Activity, set custom events and trigger Push Notifications based on Users’ Current/Real-time or Previous Sessions’ Activity 
•Set custom events such as App Open, Click on a Link, App Session Close, In-App Purchase, Add to Cart, etc. 
•Trigger real-time Push Notifications based on Event occurrences
Creating a channel & scheduling 
Push messages through AppHQ
A very useful feature that can track: 
These analytics can be viewed from our AppHQconsole. 
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. 
Thus, Analytics gives you a better insight of your Push Notification campaign. 
Push Analytics 
•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 
How many Push Notifications were sent from your side 
How many were delivered, and 
How many users opened the message 
100% 
74% 
31% 
Push Notification Campaign 
Sent 
Delivered 
Opened
Integrate Push Notificationwith Unity3d on iOS
Steps to Integrate Push Notificationwith Unity3d on iOS 
Download our Sample App Source Code from ourGitHub Repo. 
To configure Push Notifications for iOS Apps/games; the prerequisites are: 
•Create a new App ID and provisioning profile for each App that uses push as wellas an SSL certificate for the server. For this, you should havean iOS Developer Program Membership oniOS Dev Center 
•Create .p12 file from the SSL certificate, which was downloaded from the iOS Dev Center 
•You require a server! 
Note:If you are new to Push Notifications for iOS or App42 , you can go through ourprevious blog(Configure & Send Push Notification on iOS Device)
How the sample code implements the Push Notifications by examining the key code snippets? 
•Open the downloaded folder, go to the assets folder and double click PushSample.unityfile to open the sample 
•To implement ‘Push’, drag and drop our “App42PushHandlerInternal.h/.m” classes to “Assets/Plugins/iOS” folder and “PushScript.cs”C# script to “Assets” folder. 
•Assign PushScript.csto a game object; in demo it was assigned to the main camera. So, let’s browse through the PushScript.cscode. 
•To receive push notifications, iOSneeds to be notified that your App wants to receive push notifications, and “App42PushHandlerInternal.m”class does it by default . 
•In PushScript, all the required call backs are defined and to get the call backs, set a listener game object as: 
Contd.. 
1 
// Use this for initialization 
2 
voidStart () 
3 
{ 
4 
setListenerGameObject(this.gameObject.name); 
5 
}
•As “App42PushHandlerInternal.m” sends a request to register this device for push notification service; the device token is received from Apple Push Service on the successful response. 
•It is available via “onDidRegisterForRemoteNotificationsWithDeviceToken” call back of PushScript.cs. 
Contd.. 
1 
//Sent when the application successfully registered with Apple Push Notification Service (APNS). 
2 
voidonDidRegisterForRemoteNotificationsWithDeviceToken(string deviceToken) 
3 
{ 
4 
if(deviceToken !=null&&deviceToken.Length!=0) 
5 
{ 
6 
registerDeviceTokenToApp42PushNotificationService(deviceToken,"User Name"); 
7 
} 
8 
}
•Register this device to App42 Push Notification Service to send/receive push notifications. 
•To do this, just call “registerDeviceTokenToApp42PushNotificationService” method of PushScript.csfrom the above call back 
Contd.. 
1 
//Registers a user with the given device token to APP42 push notification service 
2 
voidregisterDeviceTokenToApp42PushNotificationService(string devToken,string userName) 
3 
{ 
4 
ServiceAPI serviceAPI =newServiceAPI(api_key,secret_key); 
5 
PushNotificationService pushService =serviceAPI.BuildPushNotificationService(); 
6 
pushService.StoreDeviceToken(userName,devToken,"iOS"); 
7 
}
•The SendPushToUsermethod of this script can be written/called to send a request to App42 serverto send a Push Notification to a specific user 
Contd.. 
1 
//Sends push to a given user 
2 
voidSendPushToUser(string userName,string message) 
3 
{ 
4 
ServiceAPI serviceAPI =newServiceAPI(api_key,secret_key); 
5 
PushNotificationService pushService =serviceAPI.BuildPushNotificationService(); 
6 
pushService.SendPushMessageToUser(userName,message); 
7 
}
•The “onPushNotificationsReceived” call back of the PushScriptwill be called when you receive a push notification 
Contd.. 
1 
//Sent when the application Receives a push notification 
2 
voidonPushNotificationsReceived(string pushMessageString) 
3 
{ 
4 
Console.WriteLine("onPushNotificationsReceived"); 
5 
//dump you code here to handle the pushMessageString 
6 
Debug.Log(pushMessageString); 
7 
}
Now, 
•Your App is successfully set up to receive/send push notifications through our App42 Server usingApp42 Push Notification Service 
•If you have any questions or need further assistance to integrate Push Notification in your App, do write back atsupport@shephertz.com 
Contd..
Sending a message 
through AppHQconsole
IT IS THAT SIMPLE!!!
Some useful links 
Getting Started: 
Quick Start GuideSign-up for Free 
Game Development Center 
Concepts: 
Backend as a Service 
Massive Multiplayer Gaming Engine 
App Analytics 
Products: App42 Cloud APIs -BaaSAppWarp –Multiplayer Gaming EngineAppHQ –Management Console 
Downloads: 
App42 Cloud SDKs 
App 42 Modules 
Blogs: 
Why BaaS? 
Push Notification for iOS 
Push Notification for AndroidReal-time Multiplayer Games using Unity3D 
Integrating Facebook in your Android AppMaking a Turn-based Game 
Using Query Interface 
When to use NoSQL? 
Add ‘Social’ to your Game
Links for Reference : 
http://www.shephertz.com 
http://api.shephertz.com 
http://appwarp.shephertz.com 
http://app42paas.shephertz.com 
Follow us on: 
Contact: sales@shephertz.com 
Skype: ShepHertz

Weitere ähnliche Inhalte

Ähnlich wie Push Notification with Unity in iOS using App42 Backend

(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...
(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...
(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...Amazon Web Services
 
Engaging Your Audience with Mobile Push Notifications - GDC 2014
Engaging Your Audience with Mobile Push Notifications - GDC 2014Engaging Your Audience with Mobile Push Notifications - GDC 2014
Engaging Your Audience with Mobile Push Notifications - GDC 2014Amazon Web Services
 
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUBAZURE NOTIFICATION HUB
AZURE NOTIFICATION HUBDotNetCampus
 
Net campus15 notification-hub
Net campus15 notification-hubNet campus15 notification-hub
Net campus15 notification-hubDotNetCampus
 
Push notifications with dashboard and swift
Push notifications with dashboard and swiftPush notifications with dashboard and swift
Push notifications with dashboard and swiftCharles Ramos
 
Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and George Batschinski
 
Mobile March Windows Azure Notification Hubs
Mobile March Windows Azure Notification HubsMobile March Windows Azure Notification Hubs
Mobile March Windows Azure Notification HubsAdam Grocholski
 
How push notifications works?
How push notifications works?How push notifications works?
How push notifications works?Marry Ann
 
Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...naseeb20
 
Push Notifications: How to add them to a Flutter App
Push Notifications: How to add them to a Flutter AppPush Notifications: How to add them to a Flutter App
Push Notifications: How to add them to a Flutter AppFibonalabs
 
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Amazon Web Services
 
ReactNYC: Push Notifications in React Native
ReactNYC: Push Notifications in React NativeReactNYC: Push Notifications in React Native
ReactNYC: Push Notifications in React NativeNan Xiao
 
Configure & send push notification on i os device
Configure & send push notification on i os deviceConfigure & send push notification on i os device
Configure & send push notification on i os deviceShepHertz
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)Daniel Meixner
 

Ähnlich wie Push Notification with Unity in iOS using App42 Backend (20)

push_notification
push_notificationpush_notification
push_notification
 
(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...
(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...
(MBL301) Beyond the App - Extend Your User Experience with Mobile Push Notifi...
 
Engaging Your Audience with Mobile Push Notifications - GDC 2014
Engaging Your Audience with Mobile Push Notifications - GDC 2014Engaging Your Audience with Mobile Push Notifications - GDC 2014
Engaging Your Audience with Mobile Push Notifications - GDC 2014
 
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUBAZURE NOTIFICATION HUB
AZURE NOTIFICATION HUB
 
Net campus15 notification-hub
Net campus15 notification-hubNet campus15 notification-hub
Net campus15 notification-hub
 
Push notifications with dashboard and swift
Push notifications with dashboard and swiftPush notifications with dashboard and swift
Push notifications with dashboard and swift
 
Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and
 
Mobile March Windows Azure Notification Hubs
Mobile March Windows Azure Notification HubsMobile March Windows Azure Notification Hubs
Mobile March Windows Azure Notification Hubs
 
How push notifications works?
How push notifications works?How push notifications works?
How push notifications works?
 
Sencha Touch MVC
Sencha Touch MVCSencha Touch MVC
Sencha Touch MVC
 
Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...
 
How to create android push notifications with custom view
How to create android push notifications with custom viewHow to create android push notifications with custom view
How to create android push notifications with custom view
 
Push Notifications: How to add them to a Flutter App
Push Notifications: How to add them to a Flutter AppPush Notifications: How to add them to a Flutter App
Push Notifications: How to add them to a Flutter App
 
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
 
ReactNYC: Push Notifications in React Native
ReactNYC: Push Notifications in React NativeReactNYC: Push Notifications in React Native
ReactNYC: Push Notifications in React Native
 
Configure & send push notification on i os device
Configure & send push notification on i os deviceConfigure & send push notification on i os device
Configure & send push notification on i os device
 
Training Toolkit - Incentive Server
Training Toolkit - Incentive ServerTraining Toolkit - Incentive Server
Training Toolkit - Incentive Server
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
 
Cloud Messaging Flutter
Cloud Messaging FlutterCloud Messaging Flutter
Cloud Messaging Flutter
 
Push Notification
Push NotificationPush Notification
Push Notification
 

Mehr von ShepHertz

ShepHertz Facial recognition based attendance and visitor management system
ShepHertz Facial recognition based attendance and visitor management systemShepHertz Facial recognition based attendance and visitor management system
ShepHertz Facial recognition based attendance and visitor management systemShepHertz
 
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...ShepHertz
 
A Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dx
A Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dxA Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dx
A Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dxShepHertz
 
Media & entertainment marketing automation and omnichannel media
Media & entertainment marketing automation and omnichannel mediaMedia & entertainment marketing automation and omnichannel media
Media & entertainment marketing automation and omnichannel mediaShepHertz
 
Insurance marketing automation and omni channel insurance.
Insurance marketing automation and omni channel insurance.Insurance marketing automation and omni channel insurance.
Insurance marketing automation and omni channel insurance.ShepHertz
 
Travel and aviation marketing automation and omnichannel travel
Travel and aviation marketing automation and omnichannel travelTravel and aviation marketing automation and omnichannel travel
Travel and aviation marketing automation and omnichannel travelShepHertz
 
ShepHertz Cloud Ecosystem for Apps
ShepHertz Cloud Ecosystem for AppsShepHertz Cloud Ecosystem for Apps
ShepHertz Cloud Ecosystem for AppsShepHertz
 
ShepHertz - アプリのための万全なエコシステム
ShepHertz - アプリのための万全なエコシステムShepHertz - アプリのための万全なエコシステム
ShepHertz - アプリのための万全なエコシステムShepHertz
 
Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2ShepHertz
 
App42 Student Lab - Android Game Dev Series V 0.1
App42 Student Lab - Android Game Dev Series V 0.1App42 Student Lab - Android Game Dev Series V 0.1
App42 Student Lab - Android Game Dev Series V 0.1ShepHertz
 
ShepHertz - A Complete Cloud Ecosystem for your Apps
ShepHertz - A Complete Cloud Ecosystem for your AppsShepHertz - A Complete Cloud Ecosystem for your Apps
ShepHertz - A Complete Cloud Ecosystem for your AppsShepHertz
 

Mehr von ShepHertz (11)

ShepHertz Facial recognition based attendance and visitor management system
ShepHertz Facial recognition based attendance and visitor management systemShepHertz Facial recognition based attendance and visitor management system
ShepHertz Facial recognition based attendance and visitor management system
 
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
 
A Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dx
A Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dxA Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dx
A Complete Tutorial to Develop Real-Time Fighting Game with Cocos2dx
 
Media & entertainment marketing automation and omnichannel media
Media & entertainment marketing automation and omnichannel mediaMedia & entertainment marketing automation and omnichannel media
Media & entertainment marketing automation and omnichannel media
 
Insurance marketing automation and omni channel insurance.
Insurance marketing automation and omni channel insurance.Insurance marketing automation and omni channel insurance.
Insurance marketing automation and omni channel insurance.
 
Travel and aviation marketing automation and omnichannel travel
Travel and aviation marketing automation and omnichannel travelTravel and aviation marketing automation and omnichannel travel
Travel and aviation marketing automation and omnichannel travel
 
ShepHertz Cloud Ecosystem for Apps
ShepHertz Cloud Ecosystem for AppsShepHertz Cloud Ecosystem for Apps
ShepHertz Cloud Ecosystem for Apps
 
ShepHertz - アプリのための万全なエコシステム
ShepHertz - アプリのための万全なエコシステムShepHertz - アプリのための万全なエコシステム
ShepHertz - アプリのための万全なエコシステム
 
Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2
 
App42 Student Lab - Android Game Dev Series V 0.1
App42 Student Lab - Android Game Dev Series V 0.1App42 Student Lab - Android Game Dev Series V 0.1
App42 Student Lab - Android Game Dev Series V 0.1
 
ShepHertz - A Complete Cloud Ecosystem for your Apps
ShepHertz - A Complete Cloud Ecosystem for your AppsShepHertz - A Complete Cloud Ecosystem for your Apps
ShepHertz - A Complete Cloud Ecosystem for your Apps
 

Kürzlich hochgeladen

Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IES VE
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemAsko Soukka
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXTarek Kalaji
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureEric D. Schabell
 
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...Daniel Zivkovic
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Brian Pichman
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfinfogdgmi
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?IES VE
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?Juan Carlos Gonzalez
 

Kürzlich hochgeladen (20)

Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystem
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability Adventure
 
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdf
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?
 

Push Notification with Unity in iOS using App42 Backend

  • 2. Increase User Engagement Calendar Events Message Pop-Up Latest Updates Push Notifications
  • 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. App42 Push Notification supports iOS Android Windows Unity Flash HTML 5 Cocos2dx Corona.. And more
  • 5. Our Push Notification API can be used to send cross- platformpush messages to devices running on iOS, Androidand WindowsPhonewith a single API call •Send Image/Text/URLstext-based Push Notifications •Send messages in Channel Subscription Mode •Send ScheduledPush as per Time-Zone No infrastructure & scalability worries Push Analytics•Analyzeyour Push Campaign with App42 Analytics •Evaluate the number of Push messages sent, delivered and opened Why App42 Push Notification?
  • 6. Push for Marketing Automation Segment your Users and send targeted Push Notifications •Segmentation based on User Profile, Interests, Channel Subscription, etc. •Geo-Location based Push Notifications Track User Activity, set custom events and trigger Push Notifications based on Users’ Current/Real-time or Previous Sessions’ Activity •Set custom events such as App Open, Click on a Link, App Session Close, In-App Purchase, Add to Cart, etc. •Trigger real-time Push Notifications based on Event occurrences
  • 7. Creating a channel & scheduling Push messages through AppHQ
  • 8. A very useful feature that can track: These analytics can be viewed from our AppHQconsole. 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. Thus, Analytics gives you a better insight of your Push Notification campaign. Push Analytics •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 How many Push Notifications were sent from your side How many were delivered, and How many users opened the message 100% 74% 31% Push Notification Campaign Sent Delivered Opened
  • 10. Steps to Integrate Push Notificationwith Unity3d on iOS Download our Sample App Source Code from ourGitHub Repo. To configure Push Notifications for iOS Apps/games; the prerequisites are: •Create a new App ID and provisioning profile for each App that uses push as wellas an SSL certificate for the server. For this, you should havean iOS Developer Program Membership oniOS Dev Center •Create .p12 file from the SSL certificate, which was downloaded from the iOS Dev Center •You require a server! Note:If you are new to Push Notifications for iOS or App42 , you can go through ourprevious blog(Configure & Send Push Notification on iOS Device)
  • 11. How the sample code implements the Push Notifications by examining the key code snippets? •Open the downloaded folder, go to the assets folder and double click PushSample.unityfile to open the sample •To implement ‘Push’, drag and drop our “App42PushHandlerInternal.h/.m” classes to “Assets/Plugins/iOS” folder and “PushScript.cs”C# script to “Assets” folder. •Assign PushScript.csto a game object; in demo it was assigned to the main camera. So, let’s browse through the PushScript.cscode. •To receive push notifications, iOSneeds to be notified that your App wants to receive push notifications, and “App42PushHandlerInternal.m”class does it by default . •In PushScript, all the required call backs are defined and to get the call backs, set a listener game object as: Contd.. 1 // Use this for initialization 2 voidStart () 3 { 4 setListenerGameObject(this.gameObject.name); 5 }
  • 12. •As “App42PushHandlerInternal.m” sends a request to register this device for push notification service; the device token is received from Apple Push Service on the successful response. •It is available via “onDidRegisterForRemoteNotificationsWithDeviceToken” call back of PushScript.cs. Contd.. 1 //Sent when the application successfully registered with Apple Push Notification Service (APNS). 2 voidonDidRegisterForRemoteNotificationsWithDeviceToken(string deviceToken) 3 { 4 if(deviceToken !=null&&deviceToken.Length!=0) 5 { 6 registerDeviceTokenToApp42PushNotificationService(deviceToken,"User Name"); 7 } 8 }
  • 13. •Register this device to App42 Push Notification Service to send/receive push notifications. •To do this, just call “registerDeviceTokenToApp42PushNotificationService” method of PushScript.csfrom the above call back Contd.. 1 //Registers a user with the given device token to APP42 push notification service 2 voidregisterDeviceTokenToApp42PushNotificationService(string devToken,string userName) 3 { 4 ServiceAPI serviceAPI =newServiceAPI(api_key,secret_key); 5 PushNotificationService pushService =serviceAPI.BuildPushNotificationService(); 6 pushService.StoreDeviceToken(userName,devToken,"iOS"); 7 }
  • 14. •The SendPushToUsermethod of this script can be written/called to send a request to App42 serverto send a Push Notification to a specific user Contd.. 1 //Sends push to a given user 2 voidSendPushToUser(string userName,string message) 3 { 4 ServiceAPI serviceAPI =newServiceAPI(api_key,secret_key); 5 PushNotificationService pushService =serviceAPI.BuildPushNotificationService(); 6 pushService.SendPushMessageToUser(userName,message); 7 }
  • 15. •The “onPushNotificationsReceived” call back of the PushScriptwill be called when you receive a push notification Contd.. 1 //Sent when the application Receives a push notification 2 voidonPushNotificationsReceived(string pushMessageString) 3 { 4 Console.WriteLine("onPushNotificationsReceived"); 5 //dump you code here to handle the pushMessageString 6 Debug.Log(pushMessageString); 7 }
  • 16. Now, •Your App is successfully set up to receive/send push notifications through our App42 Server usingApp42 Push Notification Service •If you have any questions or need further assistance to integrate Push Notification in your App, do write back atsupport@shephertz.com Contd..
  • 17. Sending a message through AppHQconsole
  • 18. IT IS THAT SIMPLE!!!
  • 19. Some useful links Getting Started: Quick Start GuideSign-up for Free Game Development Center Concepts: Backend as a Service Massive Multiplayer Gaming Engine App Analytics Products: App42 Cloud APIs -BaaSAppWarp –Multiplayer Gaming EngineAppHQ –Management Console Downloads: App42 Cloud SDKs App 42 Modules Blogs: Why BaaS? Push Notification for iOS Push Notification for AndroidReal-time Multiplayer Games using Unity3D Integrating Facebook in your Android AppMaking a Turn-based Game Using Query Interface When to use NoSQL? Add ‘Social’ to your Game
  • 20. Links for Reference : http://www.shephertz.com http://api.shephertz.com http://appwarp.shephertz.com http://app42paas.shephertz.com Follow us on: Contact: sales@shephertz.com Skype: ShepHertz