SlideShare a Scribd company logo
1 of 26
Download to read offline
 
 
 
 
 
 
 
 
 
 
Urban Airship & Android Application
Integration Document
BrainBox Network. Copyright@2015. All rights reserved
 
The document provides steps to integrate Android Application with Urban Airship to facilitate Push and
In‐App Notification.
The integration process requires following steps ‐
1.​Create App on Google
2.​Enable GCM Services
3.​Get GCM Server API Key
4.​Generate Configuration Files
5.​Download Configuration Files
6.​Create Account in Urban Airship
7.​Download airshipconfig.properties Files
8.​Configure GCM service
9.​Android App Configuration
10.​Android Gradle File Configuration
11.​Android Manifest Permission
12.​Application Class Configuration
13.​Android Manifest Configuration
14.​Add Tags
15.​In‐App Configuration of Urban Airship
16.​Send Push Notification from Urban Airship
17.​Send In‐App Notification from Urban Airship
18.​Set Notification Action ‐ Urban Airship
BrainBox Network. Copyright@2015. All rights reserved
 
Create App on Google 
➔ Create a google account and go to the developer’s console
(​https://developers.google.com/mobile/add?platform=android​)
➔ Provide your application name, android package name and country
➔ Click on choose and configure services
BrainBox Network. Copyright@2015. All rights reserved
 
Enable GCM Service 
➔ Select Cloud Messaging
➔ Click on Enable Google Cloud Messaging
BrainBox Network. Copyright@2015. All rights reserved
 
Get GCM Server API Key 
➔ Make a note of the Sender API Key and Sender Id. They will be used in configuration later.
BrainBox Network. Copyright@2015. All rights reserved
 
Generate Configuration Files 
➔ Click the Generate Configuration Files button
BrainBox Network. Copyright@2015. All rights reserved
 
Download Configuration Files  
➔ Click on Download Google‐services.json button
➔ This will download your google configuration file
➔ You have to use this json file in your android application further
BrainBox Network. Copyright@2015. All rights reserved
 
Create Account in Urban Airship  
➔ Open​​www.urbanairship.com​and click on Get Started
BrainBox Network. Copyright@2015. All rights reserved
 
•Choose the Starter free option and click on Get Started
BrainBox Network. Copyright@2015. All rights reserved
 
Provide your details in the form and click Sign Up.
BrainBox Network. Copyright@2015. All rights reserved
 
Provide your application details and click Save.
Ensure to choose ‘Production ‐ connecting to live servers’ in Production Status dropdown
BrainBox Network. Copyright@2015. All rights reserved
 
Download airshipconfig.properties file  
 
Scroll down and click the Download button. You will find the production application key in this file
BrainBox Network. Copyright@2015. All rights reserved
 
Configure GCM service  
➔ Scroll down and go to GCM setting.
➔ Provide the API key and Package name (package name of your android project) and Save
➔ Click on Configure Test List for notification testing
BrainBox Network. Copyright@2015. All rights reserved
 
Android App Configuration  
➔ Keep the ​google‐services.json​file in android app folder.
➔ Create an assets folder in android app and keep the ​airshipconfig.properties​file in it.
BrainBox Network. Copyright@2015. All rights reserved
 
Android Gradle file Configuration  
Now import the urban airship SDK and change the build.gradle file of your project like this.
repositories{
maven{
url​​http://dl.bintray.com/urbanairship/android
}
}
dependencies{
compile ‘com.urbanairship.android:urbanairship‐sdk:7.0.+’
compile ‘com.android.support:cardview‐v7:23.1.1’
compile ‘com.google.android.gms:play‐services‐ location:8.4.0’
}
BrainBox Network. Copyright@2015. All rights reserved
 
Android Manifest Permission 
Add the receiver to the manifest with the proper receiver class. Here we use AirshipReceiver.java class
for getting Notification. Write the package name as shown below
<receiver
android:name=".AirshipReceiver“
android:exported="false">
<intent‐filter>
<action android:name="com.urbanairship.push.CHANNEL_UPDATED" />
<action android:name="com.urbanairship.push.OPENED" />
<action android:name="com.urbanairship.push.DISMISSED" />
<action android:name="com.urbanairship.push.RECEIVED" />
<action android:name="com.urbanairship.airmail.END_REGISTER" />
<action android:name="com.urbanairship.airmail.ACCEPT_PUSH" />
<action android:name="com.urbanairship.airmail.NOTIFY" />
<category android:name=“your package name" />
</intent‐filter>
</receiver>
BrainBox Network. Copyright@2015. All rights reserved
 
Application Class Configuration 
Create a class which extends Application class and write the code below in this class.
Ensure to use your own Production App Key , App Secret Key and GCM sender.
public class AirDemoApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
AirshipConfigOptions options = new AirshipConfigOptions.Builder()
.setDevelopmentAppKey("g1xHIsgQQkC02FvDWcFwqw")//leave blank of same as production key
.setDevelopmentAppSecret("lVM2tFIxQrqzbt8PeB3qEA")//leave blank of same as production key
.setProductionAppKey("g1xHIsgQQkC02FvDWcFwqw")
.setProductionAppSecret("lVM2tFIxQrqzbt8PeB3qEA")
.setInProduction(!BuildConfig.DEBUG)
.setGcmSender("640437662963")
.build();
UAirship.takeOff(this, options, new UAirship.OnReadyCallback() {
@Override
public void onAirshipReady(UAirship airship) {
airship.getPushManager().setUserNotificationsEnabled(true);
BrainBox Network. Copyright@2015. All rights reserved
 
airship.shared()
.getInAppMessageManager()
.setAutoDisplayDelay(10000L);
airship.shared()
.getInAppMessageManager()
.setDisplayAsapEnabled(true); }); }}
BrainBox Network. Copyright@2015. All rights reserved
 
Android Manifest Configuration 
Call the application class in manifest.xml inside application.
BrainBox Network. Copyright@2015. All rights reserved
 
To Add Tags 
Use the code below to tag user by sending user’s information to Urban Airship
Set<String> tags = new HashSet<String>();
tags = UAirship.shared().getPushManager().getTags();
tags.add("tag name");
UAirship.shared().getPushManager().setTags(tags);
UAirship.shared().getPushManager().setAlias("alias name");
UAirship.shared().getPushManager().getNamedUser().setId("user name");
BrainBox Network. Copyright@2015. All rights reserved
 
In­App configuration of Urban Airship 
➔ Open Urban Airship website and choose your production app
➔ Go to setting > configuration
➔ SelectIn‐App Messages
➔ Choose color of the message
BrainBox Network. Copyright@2015. All rights reserved
 
Send Push Notification from Urban Airship 
Go to Messages Overview panel and click ‘New Push Message’
➔ Enter your message
➔ Choose broadcast to send on every device.
➔ Choose the Delivery time and send
BrainBox Network. Copyright@2015. All rights reserved
 
Send In­App Notification from Urban Airship 
➔ Go to Messages Overview panel and choose option new message
➔ Check In‐App only
➔ Enter your message
➔ Disable notification action
➔ Choose all device
➔ Choose immediate delivery
➔ Confirm and send.
BrainBox Network. Copyright@2015. All rights reserved
 
Set Notification Action ­ Urban Airship 
Select action landing page and click on rich page. This will open a template. Click on the select button
next to text.
BrainBox Network. Copyright@2015. All rights reserved
 
➔ After clicking on select button template will be open
➔ Edit the heading text by clicking on it.
➔ Edit the message text by clicking on it.
➔ Edit the button text on clicking on it.
➔ Add action on button click.
➔ Choose URL option to set a url in it.
➔ Enter the url you want to open and click on save & exit button. Now your action is set.
BrainBox Network. Copyright@2015. All rights reserved
 
Thank You So Very Much
For queries please write on ​ashish@mobifly.in
Developed By
Danish Ali
Android Developer ‐ Mobifly
mobifly.in
BrainBox Network. Copyright@2015. All rights reserved

More Related Content

What's hot

GCM Android
GCM AndroidGCM Android
GCM Androidaswapnal
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging Lavakush Verma
 
Gcm presentation
Gcm presentationGcm presentation
Gcm presentationNiraj Singh
 
Creating web api and consuming- part 1
Creating web api and consuming- part 1Creating web api and consuming- part 1
Creating web api and consuming- part 1Dipendra Shekhawat
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging Sandip Jadhav
 
Google cloud messaging
Google cloud messagingGoogle cloud messaging
Google cloud messagingAmardeep Vijay
 
Firebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech StaffFirebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech StaffTharaka Devinda
 
Gradle Play Publisher Plugin
Gradle Play Publisher PluginGradle Play Publisher Plugin
Gradle Play Publisher PluginDaniel Kao
 
How To Send Twitch Notifications Using Courier
How To Send Twitch Notifications Using CourierHow To Send Twitch Notifications Using Courier
How To Send Twitch Notifications Using CourierLetterdrop
 
Courier March Product Release Notes
Courier March Product Release NotesCourier March Product Release Notes
Courier March Product Release NotesLetterdrop
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App EngineAndrea Spadaccini
 
The Firebase tier for your mobile app - DevFest CH
The Firebase tier for your mobile app - DevFest CHThe Firebase tier for your mobile app - DevFest CH
The Firebase tier for your mobile app - DevFest CHMatteo Bonifazi
 
GCM with Pushbots
GCM with PushbotsGCM with Pushbots
GCM with PushbotsAshish RAj
 
Building a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesBuilding a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesDavid Giard
 
Full Angular 7 Firebase Authentication System
Full Angular 7 Firebase Authentication SystemFull Angular 7 Firebase Authentication System
Full Angular 7 Firebase Authentication SystemDigamber Singh
 
Mixpanel Integration in Android
Mixpanel Integration in AndroidMixpanel Integration in Android
Mixpanel Integration in Androidmobi fly
 
Extending Google Apps/Spreadsheet using Google Apps Script
Extending Google Apps/Spreadsheet using Google Apps ScriptExtending Google Apps/Spreadsheet using Google Apps Script
Extending Google Apps/Spreadsheet using Google Apps ScriptDipali Vyas
 

What's hot (20)

GCM Android
GCM AndroidGCM Android
GCM Android
 
Google App Engine tutorial
Google App Engine tutorialGoogle App Engine tutorial
Google App Engine tutorial
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging
 
Gcm presentation
Gcm presentationGcm presentation
Gcm presentation
 
Creating web api and consuming- part 1
Creating web api and consuming- part 1Creating web api and consuming- part 1
Creating web api and consuming- part 1
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging
 
google cloud messaging
google cloud messaginggoogle cloud messaging
google cloud messaging
 
Google cloud messaging
Google cloud messagingGoogle cloud messaging
Google cloud messaging
 
Firebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech StaffFirebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech Staff
 
Gradle Play Publisher Plugin
Gradle Play Publisher PluginGradle Play Publisher Plugin
Gradle Play Publisher Plugin
 
How To Send Twitch Notifications Using Courier
How To Send Twitch Notifications Using CourierHow To Send Twitch Notifications Using Courier
How To Send Twitch Notifications Using Courier
 
Courier March Product Release Notes
Courier March Product Release NotesCourier March Product Release Notes
Courier March Product Release Notes
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
The Firebase tier for your mobile app - DevFest CH
The Firebase tier for your mobile app - DevFest CHThe Firebase tier for your mobile app - DevFest CH
The Firebase tier for your mobile app - DevFest CH
 
GCM with Pushbots
GCM with PushbotsGCM with Pushbots
GCM with Pushbots
 
Google+ API (2012)
Google+ API (2012)Google+ API (2012)
Google+ API (2012)
 
Building a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesBuilding a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web Services
 
Full Angular 7 Firebase Authentication System
Full Angular 7 Firebase Authentication SystemFull Angular 7 Firebase Authentication System
Full Angular 7 Firebase Authentication System
 
Mixpanel Integration in Android
Mixpanel Integration in AndroidMixpanel Integration in Android
Mixpanel Integration in Android
 
Extending Google Apps/Spreadsheet using Google Apps Script
Extending Google Apps/Spreadsheet using Google Apps ScriptExtending Google Apps/Spreadsheet using Google Apps Script
Extending Google Apps/Spreadsheet using Google Apps Script
 

Viewers also liked

Case Hehku Pikatulkkipalvelu Oy, Matti Jäntti
Case Hehku Pikatulkkipalvelu Oy, Matti JänttiCase Hehku Pikatulkkipalvelu Oy, Matti Jäntti
Case Hehku Pikatulkkipalvelu Oy, Matti JänttiTouNethanke
 
Sistri parte II - Road Show Torino 2012
Sistri parte II - Road Show Torino 2012Sistri parte II - Road Show Torino 2012
Sistri parte II - Road Show Torino 2012ghirardo
 
HIDDEN JOB MARKET March 2016
HIDDEN JOB MARKET March 2016HIDDEN JOB MARKET March 2016
HIDDEN JOB MARKET March 2016Sarah Rach
 
Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...
Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...
Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...Nicola Bottura
 
Produzione software - Le metriche
Produzione software - Le metricheProduzione software - Le metriche
Produzione software - Le metricheGemax Consulting
 
priporocilo_lejla_lezic
priporocilo_lejla_lezicpriporocilo_lejla_lezic
priporocilo_lejla_lezicAlenka Babnik
 
ўқув амалиёти аппарат 22 март
ўқув амалиёти аппарат 22 мартўқув амалиёти аппарат 22 март
ўқув амалиёти аппарат 22 мартIlyosbey Nazarov
 
Agace cegesti manual_aguas_para_empresas
Agace cegesti manual_aguas_para_empresasAgace cegesti manual_aguas_para_empresas
Agace cegesti manual_aguas_para_empresasSilvio Duran
 
берегись автомобиля
берегись автомобиляберегись автомобиля
берегись автомобиляtokareva_veronika
 
Kuhn_HonoringFreedom_Full_Promo
Kuhn_HonoringFreedom_Full_PromoKuhn_HonoringFreedom_Full_Promo
Kuhn_HonoringFreedom_Full_PromoThomas Baylerian
 

Viewers also liked (20)

Case Hehku Pikatulkkipalvelu Oy, Matti Jäntti
Case Hehku Pikatulkkipalvelu Oy, Matti JänttiCase Hehku Pikatulkkipalvelu Oy, Matti Jäntti
Case Hehku Pikatulkkipalvelu Oy, Matti Jäntti
 
Nata (11)
Nata (11)Nata (11)
Nata (11)
 
Artefact E-Learning and Digital Cultures EDC MOOC Coursera University of Edin...
Artefact E-Learning and Digital Cultures EDC MOOC Coursera University of Edin...Artefact E-Learning and Digital Cultures EDC MOOC Coursera University of Edin...
Artefact E-Learning and Digital Cultures EDC MOOC Coursera University of Edin...
 
Puucca
PuuccaPuucca
Puucca
 
Sistri parte II - Road Show Torino 2012
Sistri parte II - Road Show Torino 2012Sistri parte II - Road Show Torino 2012
Sistri parte II - Road Show Torino 2012
 
HIDDEN JOB MARKET March 2016
HIDDEN JOB MARKET March 2016HIDDEN JOB MARKET March 2016
HIDDEN JOB MARKET March 2016
 
Baffaut - Multi-Scale Monitoring
Baffaut - Multi-Scale Monitoring Baffaut - Multi-Scale Monitoring
Baffaut - Multi-Scale Monitoring
 
Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...
Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...
Case History BBS per 1° Forum sullo stato dell\\’applicazione della BBS in It...
 
Playoff Blues
Playoff BluesPlayoff Blues
Playoff Blues
 
Resume (1)
Resume (1)Resume (1)
Resume (1)
 
Produzione software - Le metriche
Produzione software - Le metricheProduzione software - Le metriche
Produzione software - Le metriche
 
priporocilo_lejla_lezic
priporocilo_lejla_lezicpriporocilo_lejla_lezic
priporocilo_lejla_lezic
 
Los simbolos patrios
Los simbolos patriosLos simbolos patrios
Los simbolos patrios
 
Animales en extincion
Animales en extincionAnimales en extincion
Animales en extincion
 
Seminario 3
Seminario 3Seminario 3
Seminario 3
 
ўқув амалиёти аппарат 22 март
ўқув амалиёти аппарат 22 мартўқув амалиёти аппарат 22 март
ўқув амалиёти аппарат 22 март
 
Wix behavior paper
Wix behavior paperWix behavior paper
Wix behavior paper
 
Agace cegesti manual_aguas_para_empresas
Agace cegesti manual_aguas_para_empresasAgace cegesti manual_aguas_para_empresas
Agace cegesti manual_aguas_para_empresas
 
берегись автомобиля
берегись автомобиляберегись автомобиля
берегись автомобиля
 
Kuhn_HonoringFreedom_Full_Promo
Kuhn_HonoringFreedom_Full_PromoKuhn_HonoringFreedom_Full_Promo
Kuhn_HonoringFreedom_Full_Promo
 

Similar to Urban Airship and Android Integration for Push Notification and In-App Notification

High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...Amazon Web Services
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Android chat in the cloud
Android chat in the cloudAndroid chat in the cloud
Android chat in the cloudfirenze-gtug
 
Raspberry pi and Google Cloud
Raspberry pi and Google CloudRaspberry pi and Google Cloud
Raspberry pi and Google CloudFaisal Mehmood
 
Push Notification in IBM MobileFirst Xamarin SDK
Push Notification in IBM MobileFirst Xamarin SDKPush Notification in IBM MobileFirst Xamarin SDK
Push Notification in IBM MobileFirst Xamarin SDKAjay Chebbi
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guidemagicshui
 
Breaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfBreaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfAmazon Web Services
 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud MessagingAshiq Uz Zoha
 
Android 103 - Firebase and Architecture Components
Android 103 - Firebase and Architecture ComponentsAndroid 103 - Firebase and Architecture Components
Android 103 - Firebase and Architecture ComponentsKai Koenig
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015MobileMoxie
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Suzzicks
 
Android App development and test environment, Understaing android app structure
Android App development and test environment, Understaing android app structureAndroid App development and test environment, Understaing android app structure
Android App development and test environment, Understaing android app structureVijay Rastogi
 
TDC2016SP - Trilha Android
TDC2016SP - Trilha AndroidTDC2016SP - Trilha Android
TDC2016SP - Trilha Androidtdc-globalcode
 
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Amazon Web Services
 
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
 
Breaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfBreaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfAmazon Web Services
 
Android Lab Mannual 18SUITSP5.docx
Android Lab Mannual 18SUITSP5.docxAndroid Lab Mannual 18SUITSP5.docx
Android Lab Mannual 18SUITSP5.docxkarthikaparthasarath
 
Android Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud to Device Messaging Framework at GTUG StockholmAndroid Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud to Device Messaging Framework at GTUG StockholmJohan Nilsson
 

Similar to Urban Airship and Android Integration for Push Notification and In-App Notification (20)

Android Froyo
Android FroyoAndroid Froyo
Android Froyo
 
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Android chat in the cloud
Android chat in the cloudAndroid chat in the cloud
Android chat in the cloud
 
Sst hackathon express
Sst hackathon expressSst hackathon express
Sst hackathon express
 
Raspberry pi and Google Cloud
Raspberry pi and Google CloudRaspberry pi and Google Cloud
Raspberry pi and Google Cloud
 
Push Notification in IBM MobileFirst Xamarin SDK
Push Notification in IBM MobileFirst Xamarin SDKPush Notification in IBM MobileFirst Xamarin SDK
Push Notification in IBM MobileFirst Xamarin SDK
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Breaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfBreaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdf
 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud Messaging
 
Android 103 - Firebase and Architecture Components
Android 103 - Firebase and Architecture ComponentsAndroid 103 - Firebase and Architecture Components
Android 103 - Firebase and Architecture Components
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
 
Android App development and test environment, Understaing android app structure
Android App development and test environment, Understaing android app structureAndroid App development and test environment, Understaing android app structure
Android App development and test environment, Understaing android app structure
 
TDC2016SP - Trilha Android
TDC2016SP - Trilha AndroidTDC2016SP - Trilha Android
TDC2016SP - Trilha Android
 
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
 
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...
 
Breaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfBreaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdf
 
Android Lab Mannual 18SUITSP5.docx
Android Lab Mannual 18SUITSP5.docxAndroid Lab Mannual 18SUITSP5.docx
Android Lab Mannual 18SUITSP5.docx
 
Android Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud to Device Messaging Framework at GTUG StockholmAndroid Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud to Device Messaging Framework at GTUG Stockholm
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Urban Airship and Android Integration for Push Notification and In-App Notification

  • 1.                     Urban Airship & Android Application Integration Document BrainBox Network. Copyright@2015. All rights reserved
  • 2.   The document provides steps to integrate Android Application with Urban Airship to facilitate Push and In‐App Notification. The integration process requires following steps ‐ 1.​Create App on Google 2.​Enable GCM Services 3.​Get GCM Server API Key 4.​Generate Configuration Files 5.​Download Configuration Files 6.​Create Account in Urban Airship 7.​Download airshipconfig.properties Files 8.​Configure GCM service 9.​Android App Configuration 10.​Android Gradle File Configuration 11.​Android Manifest Permission 12.​Application Class Configuration 13.​Android Manifest Configuration 14.​Add Tags 15.​In‐App Configuration of Urban Airship 16.​Send Push Notification from Urban Airship 17.​Send In‐App Notification from Urban Airship 18.​Set Notification Action ‐ Urban Airship BrainBox Network. Copyright@2015. All rights reserved
  • 3.   Create App on Google  ➔ Create a google account and go to the developer’s console (​https://developers.google.com/mobile/add?platform=android​) ➔ Provide your application name, android package name and country ➔ Click on choose and configure services BrainBox Network. Copyright@2015. All rights reserved
  • 4.   Enable GCM Service  ➔ Select Cloud Messaging ➔ Click on Enable Google Cloud Messaging BrainBox Network. Copyright@2015. All rights reserved
  • 5.   Get GCM Server API Key  ➔ Make a note of the Sender API Key and Sender Id. They will be used in configuration later. BrainBox Network. Copyright@2015. All rights reserved
  • 6.   Generate Configuration Files  ➔ Click the Generate Configuration Files button BrainBox Network. Copyright@2015. All rights reserved
  • 7.   Download Configuration Files   ➔ Click on Download Google‐services.json button ➔ This will download your google configuration file ➔ You have to use this json file in your android application further BrainBox Network. Copyright@2015. All rights reserved
  • 8.   Create Account in Urban Airship   ➔ Open​​www.urbanairship.com​and click on Get Started BrainBox Network. Copyright@2015. All rights reserved
  • 9.   •Choose the Starter free option and click on Get Started BrainBox Network. Copyright@2015. All rights reserved
  • 10.   Provide your details in the form and click Sign Up. BrainBox Network. Copyright@2015. All rights reserved
  • 11.   Provide your application details and click Save. Ensure to choose ‘Production ‐ connecting to live servers’ in Production Status dropdown BrainBox Network. Copyright@2015. All rights reserved
  • 12.   Download airshipconfig.properties file     Scroll down and click the Download button. You will find the production application key in this file BrainBox Network. Copyright@2015. All rights reserved
  • 13.   Configure GCM service   ➔ Scroll down and go to GCM setting. ➔ Provide the API key and Package name (package name of your android project) and Save ➔ Click on Configure Test List for notification testing BrainBox Network. Copyright@2015. All rights reserved
  • 14.   Android App Configuration   ➔ Keep the ​google‐services.json​file in android app folder. ➔ Create an assets folder in android app and keep the ​airshipconfig.properties​file in it. BrainBox Network. Copyright@2015. All rights reserved
  • 15.   Android Gradle file Configuration   Now import the urban airship SDK and change the build.gradle file of your project like this. repositories{ maven{ url​​http://dl.bintray.com/urbanairship/android } } dependencies{ compile ‘com.urbanairship.android:urbanairship‐sdk:7.0.+’ compile ‘com.android.support:cardview‐v7:23.1.1’ compile ‘com.google.android.gms:play‐services‐ location:8.4.0’ } BrainBox Network. Copyright@2015. All rights reserved
  • 16.   Android Manifest Permission  Add the receiver to the manifest with the proper receiver class. Here we use AirshipReceiver.java class for getting Notification. Write the package name as shown below <receiver android:name=".AirshipReceiver“ android:exported="false"> <intent‐filter> <action android:name="com.urbanairship.push.CHANNEL_UPDATED" /> <action android:name="com.urbanairship.push.OPENED" /> <action android:name="com.urbanairship.push.DISMISSED" /> <action android:name="com.urbanairship.push.RECEIVED" /> <action android:name="com.urbanairship.airmail.END_REGISTER" /> <action android:name="com.urbanairship.airmail.ACCEPT_PUSH" /> <action android:name="com.urbanairship.airmail.NOTIFY" /> <category android:name=“your package name" /> </intent‐filter> </receiver> BrainBox Network. Copyright@2015. All rights reserved
  • 17.   Application Class Configuration  Create a class which extends Application class and write the code below in this class. Ensure to use your own Production App Key , App Secret Key and GCM sender. public class AirDemoApplication extends Application { @Override public void onCreate() { super.onCreate(); AirshipConfigOptions options = new AirshipConfigOptions.Builder() .setDevelopmentAppKey("g1xHIsgQQkC02FvDWcFwqw")//leave blank of same as production key .setDevelopmentAppSecret("lVM2tFIxQrqzbt8PeB3qEA")//leave blank of same as production key .setProductionAppKey("g1xHIsgQQkC02FvDWcFwqw") .setProductionAppSecret("lVM2tFIxQrqzbt8PeB3qEA") .setInProduction(!BuildConfig.DEBUG) .setGcmSender("640437662963") .build(); UAirship.takeOff(this, options, new UAirship.OnReadyCallback() { @Override public void onAirshipReady(UAirship airship) { airship.getPushManager().setUserNotificationsEnabled(true); BrainBox Network. Copyright@2015. All rights reserved
  • 19.   Android Manifest Configuration  Call the application class in manifest.xml inside application. BrainBox Network. Copyright@2015. All rights reserved
  • 20.   To Add Tags  Use the code below to tag user by sending user’s information to Urban Airship Set<String> tags = new HashSet<String>(); tags = UAirship.shared().getPushManager().getTags(); tags.add("tag name"); UAirship.shared().getPushManager().setTags(tags); UAirship.shared().getPushManager().setAlias("alias name"); UAirship.shared().getPushManager().getNamedUser().setId("user name"); BrainBox Network. Copyright@2015. All rights reserved
  • 21.   In­App configuration of Urban Airship  ➔ Open Urban Airship website and choose your production app ➔ Go to setting > configuration ➔ SelectIn‐App Messages ➔ Choose color of the message BrainBox Network. Copyright@2015. All rights reserved
  • 22.   Send Push Notification from Urban Airship  Go to Messages Overview panel and click ‘New Push Message’ ➔ Enter your message ➔ Choose broadcast to send on every device. ➔ Choose the Delivery time and send BrainBox Network. Copyright@2015. All rights reserved
  • 23.   Send In­App Notification from Urban Airship  ➔ Go to Messages Overview panel and choose option new message ➔ Check In‐App only ➔ Enter your message ➔ Disable notification action ➔ Choose all device ➔ Choose immediate delivery ➔ Confirm and send. BrainBox Network. Copyright@2015. All rights reserved
  • 24.   Set Notification Action ­ Urban Airship  Select action landing page and click on rich page. This will open a template. Click on the select button next to text. BrainBox Network. Copyright@2015. All rights reserved
  • 25.   ➔ After clicking on select button template will be open ➔ Edit the heading text by clicking on it. ➔ Edit the message text by clicking on it. ➔ Edit the button text on clicking on it. ➔ Add action on button click. ➔ Choose URL option to set a url in it. ➔ Enter the url you want to open and click on save & exit button. Now your action is set. BrainBox Network. Copyright@2015. All rights reserved
  • 26.   Thank You So Very Much For queries please write on ​ashish@mobifly.in Developed By Danish Ali Android Developer ‐ Mobifly mobifly.in BrainBox Network. Copyright@2015. All rights reserved