SlideShare a Scribd company logo
1 of 20
Download to read offline
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

More Related Content

Similar to 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
 
Net campus15 notification-hub
Net campus15 notification-hubNet campus15 notification-hub
Net campus15 notification-hubDotNetCampus
 
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUBAZURE NOTIFICATION HUB
AZURE NOTIFICATION HUBDotNetCampus
 
How to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js AppsHow to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js Appsvaluebound
 
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
 

Similar to 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
 
Net campus15 notification-hub
Net campus15 notification-hubNet campus15 notification-hub
Net campus15 notification-hub
 
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUBAZURE NOTIFICATION HUB
AZURE NOTIFICATION HUB
 
How to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js AppsHow to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js Apps
 
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
 

More from 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
 

More from 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
 

Recently uploaded

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

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