SlideShare a Scribd company logo
ANDROID
PUSH NOTIFICATION
Presented by CodeMobiles Co.,Ltd.
www.codemobiles.com
FB Group: CodeMobiles Developers
WHAT IS PUSH
NOTIFICATION?
USE CASES
NOTIFY INFORMTION
CONTROL APPLICATION
MAKE USERSTO COME BACK
ETC.
USE CASES (CONT.)
http://goo.gl/nmlw01
CMThaiDict
http://goo.gl/dG2exY
CMThai Lotto
http://goo.gl/25qFmI
SiamGold
Push APIs
WORKSHOP
App : CMPUSH
sourcecode
http://goo.gl/yK4Sq7
http://goo.gl/6gle34
videos
WORKSHOP (STEPS)
1. New Project & Setup UI

2. Create Parse Account and setup App ID

3. Add Parse SDK

4. Setup SDK

5. Pray & Run

6. Q&A
https://www.parse.com/products/push
Signup for Parse Account
https://www.parse.com/products/push
Download SDK
Add Lib: Parse-xx.jar
Modify AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- IMPORTANT: Change "com.codemobiles.cmapppush" to match your app's package name. -->
<permission
android:name="com.codemobiles.cmapppush.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.codemobiles.cmapppush.permission.C2D_MESSAGE" />
Modify AndroidManifest.xml
(cont.)
<service android:name="com.parse.PushService" />
<receiver android:name="com.parse.ParseBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<receiver
android:name="com.parse.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<!-- IMPORTANT: Change "com.codemobiles.cmapppush" to match your app's package name. -->
<category android:name="com.codemobiles.cmapppush" />
</intent-filter>
</receiver>
Create Application.java
public class Application extends android.app.Application {
public Application() {
}
@Override
public void onCreate() {
super.onCreate();
Parse.initialize(getApplicationContext(),
"your app id - copy from parse setting",
"client id - copy from parse setting");
PushService.setDefaultPushCallback(this, MainActivity.class);
}
}
COPY APP ID AND CLIENT KEY
Paste into Application.java
Link Application.java Application
in AnroidManifest.xml
<application
android:allowBackup="true"
android:name=“<your packagename>.Application"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
MainActivity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ParseAnalytics.trackAppOpened(getIntent());
PushService.subscribe(this, "free_version", MainActivity.class);
new Thread(new Runnable() {
@Override
public void run() {
ParseInstallation.getCurrentInstallation().saveInBackground();
}
}).start();
…..
}
MainActivity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ParseAnalytics.trackAppOpened(getIntent());
PushService.subscribe(this, "free_version", MainActivity.class);
new Thread(new Runnable() {
@Override
public void run() {
ParseInstallation.getCurrentInstallation().saveInBackground();
}
}).start();
…..
}
Set NotificationTitle
Run App and Check if there is
registered clients
Send Push Message
Evaluation
Follow US
Youtube: CMDev
FB Group: CodeMobiles Developer
WWW.: CodeMobiles.com
Training: support@codemobiles.com
Tel: +(66)87-676-0813-14
FB Group: CodeMobiles Developer
CMDev. Channel
CodeMobiles.com
Q&A
FB Group: CodeMobiles Developer
http://goo.gl/bxWolr
THANKYOU
forYour Attention

More Related Content

What's hot

Android installation
Android installationAndroid installation
Android installation
Durai S
 
Startup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and runningStartup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and running
Lance Nanek
 
Build an i phone, android, or blackberry web app with jq touch and jquery
Build an i phone, android, or blackberry web app with jq touch and jqueryBuild an i phone, android, or blackberry web app with jq touch and jquery
Build an i phone, android, or blackberry web app with jq touch and jquery
Antonio Chagoury
 

What's hot (10)

ДотаНетоЛогия: СПб 2017
ДотаНетоЛогия: СПб 2017ДотаНетоЛогия: СПб 2017
ДотаНетоЛогия: СПб 2017
 
No-code & Low-code for construction: Session by Dr. Avril Behan at the No-cod...
No-code & Low-code for construction: Session by Dr. Avril Behan at the No-cod...No-code & Low-code for construction: Session by Dr. Avril Behan at the No-cod...
No-code & Low-code for construction: Session by Dr. Avril Behan at the No-cod...
 
Android installation
Android installationAndroid installation
Android installation
 
Startup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and runningStartup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and running
 
Android app development hybrid approach for beginners - Tools Installations ...
Android app development  hybrid approach for beginners - Tools Installations ...Android app development  hybrid approach for beginners - Tools Installations ...
Android app development hybrid approach for beginners - Tools Installations ...
 
HTC Bluetooth Low Energy Heart Rate Monitor Sample Code
HTC Bluetooth Low Energy Heart Rate Monitor Sample CodeHTC Bluetooth Low Energy Heart Rate Monitor Sample Code
HTC Bluetooth Low Energy Heart Rate Monitor Sample Code
 
MA6 Caravan Adobe AIR
MA6 Caravan Adobe AIRMA6 Caravan Adobe AIR
MA6 Caravan Adobe AIR
 
Build an i phone, android, or blackberry web app with jq touch and jquery
Build an i phone, android, or blackberry web app with jq touch and jqueryBuild an i phone, android, or blackberry web app with jq touch and jquery
Build an i phone, android, or blackberry web app with jq touch and jquery
 
Ensuring Quality Mobile Apps with Testing and Crash Reporting
Ensuring Quality Mobile Apps with Testing and Crash ReportingEnsuring Quality Mobile Apps with Testing and Crash Reporting
Ensuring Quality Mobile Apps with Testing and Crash Reporting
 
Smartphone enable your DotNetNuke apps with jq-touch & jqueryMobile Smartphon...
Smartphone enable your DotNetNuke apps with jq-touch & jqueryMobile Smartphon...Smartphone enable your DotNetNuke apps with jq-touch & jqueryMobile Smartphon...
Smartphone enable your DotNetNuke apps with jq-touch & jqueryMobile Smartphon...
 

Viewers also liked

Story telling marketing
Story telling marketingStory telling marketing
Story telling marketing
gjxogh
 
Sandbox Introduction
Sandbox IntroductionSandbox Introduction
Sandbox Introduction
msimkin
 
Android webservices
Android webservicesAndroid webservices
Android webservices
Krazy Koder
 

Viewers also liked (20)

Story telling marketing
Story telling marketingStory telling marketing
Story telling marketing
 
Security threats in Android OS + App Permissions
Security threats in Android OS + App PermissionsSecurity threats in Android OS + App Permissions
Security threats in Android OS + App Permissions
 
Web Services and Android - OSSPAC 2009
Web Services and Android - OSSPAC 2009Web Services and Android - OSSPAC 2009
Web Services and Android - OSSPAC 2009
 
Anatomizing online payment systems: hack to shop
Anatomizing online payment systems: hack to shopAnatomizing online payment systems: hack to shop
Anatomizing online payment systems: hack to shop
 
Android permission system
Android permission systemAndroid permission system
Android permission system
 
Sandbox Introduction
Sandbox IntroductionSandbox Introduction
Sandbox Introduction
 
Android(1)
Android(1)Android(1)
Android(1)
 
Tips dan Third Party Library untuk Android - Part 1
Tips dan Third Party Library untuk Android - Part 1Tips dan Third Party Library untuk Android - Part 1
Tips dan Third Party Library untuk Android - Part 1
 
Android training day 4
Android training day 4Android training day 4
Android training day 4
 
Android permission system
Android permission systemAndroid permission system
Android permission system
 
Android secuirty permission - upload
Android secuirty   permission - uploadAndroid secuirty   permission - upload
Android secuirty permission - upload
 
Android 6.0 permission change
Android 6.0 permission changeAndroid 6.0 permission change
Android 6.0 permission change
 
Json Tutorial
Json TutorialJson Tutorial
Json Tutorial
 
Android AsyncTask Tutorial
Android AsyncTask TutorialAndroid AsyncTask Tutorial
Android AsyncTask Tutorial
 
Android new permission model
Android new permission modelAndroid new permission model
Android new permission model
 
JSON overview and demo
JSON overview and demoJSON overview and demo
JSON overview and demo
 
Simple JSON parser
Simple JSON parserSimple JSON parser
Simple JSON parser
 
App Permissions
App PermissionsApp Permissions
App Permissions
 
Android webservices
Android webservicesAndroid webservices
Android webservices
 
Android porting for dummies @droidconin 2011
Android porting for dummies @droidconin 2011Android porting for dummies @droidconin 2011
Android porting for dummies @droidconin 2011
 

Similar to Basic Android Push Notification

Lecture 12 - Maps, AR_VR_aaaaHardware.pptx
Lecture 12 - Maps, AR_VR_aaaaHardware.pptxLecture 12 - Maps, AR_VR_aaaaHardware.pptx
Lecture 12 - Maps, AR_VR_aaaaHardware.pptx
NgLQun
 

Similar to Basic Android Push Notification (20)

RPA Summer School Session 2.1: Run your first UI automation
RPA Summer School Session 2.1: Run your first UI automationRPA Summer School Session 2.1: Run your first UI automation
RPA Summer School Session 2.1: Run your first UI automation
 
RPA summer school session 2.2: Run your first UI automation
RPA summer school session 2.2: Run your first UI automationRPA summer school session 2.2: Run your first UI automation
RPA summer school session 2.2: Run your first UI automation
 
Lecture 12 - Maps, AR_VR_aaaaHardware.pptx
Lecture 12 - Maps, AR_VR_aaaaHardware.pptxLecture 12 - Maps, AR_VR_aaaaHardware.pptx
Lecture 12 - Maps, AR_VR_aaaaHardware.pptx
 
Raspberry pi and Google Cloud
Raspberry pi and Google CloudRaspberry pi and Google Cloud
Raspberry pi and Google Cloud
 
Azure slots for app deployment the continuous delivery way
Azure slots for app deployment the continuous delivery wayAzure slots for app deployment the continuous delivery way
Azure slots for app deployment the continuous delivery way
 
How to implement sso using o auth in golang application
How to implement sso using o auth in golang applicationHow to implement sso using o auth in golang application
How to implement sso using o auth in golang application
 
Finland Azure User Group #8 DevOps Mobile Client Releases
Finland Azure User Group #8 DevOps Mobile Client Releases Finland Azure User Group #8 DevOps Mobile Client Releases
Finland Azure User Group #8 DevOps Mobile Client Releases
 
Flutter Android / iOS Build Preparation
Flutter Android / iOS Build PreparationFlutter Android / iOS Build Preparation
Flutter Android / iOS Build Preparation
 
How to make money with the Windows Store
How to make money with the Windows StoreHow to make money with the Windows Store
How to make money with the Windows Store
 
Android apps with Ionic. From rags to riches, Stanislav Khorunzhyi
Android apps with Ionic. From rags to riches, Stanislav KhorunzhyiAndroid apps with Ionic. From rags to riches, Stanislav Khorunzhyi
Android apps with Ionic. From rags to riches, Stanislav Khorunzhyi
 
Android instant app
Android instant appAndroid instant app
Android instant app
 
The Glass Class - Tutorial 2 - Mirror API
The Glass Class - Tutorial 2 - Mirror APIThe Glass Class - Tutorial 2 - Mirror API
The Glass Class - Tutorial 2 - Mirror API
 
Google IO - Five months later
Google IO - Five months laterGoogle IO - Five months later
Google IO - Five months later
 
Google Mobile App Analytics
Google Mobile App AnalyticsGoogle Mobile App Analytics
Google Mobile App Analytics
 
RICOH THETA x IoT Developers Contest : Cloud API Seminar
 RICOH THETA x IoT Developers Contest : Cloud API Seminar RICOH THETA x IoT Developers Contest : Cloud API Seminar
RICOH THETA x IoT Developers Contest : Cloud API Seminar
 
Introduction to Digital Analytics for Apps - Trusted Conf
Introduction to Digital Analytics for Apps - Trusted ConfIntroduction to Digital Analytics for Apps - Trusted Conf
Introduction to Digital Analytics for Apps - Trusted Conf
 
WordCamp London 2019 - Content monetisation platforms with WordPress
WordCamp London 2019 - Content monetisation platforms with WordPressWordCamp London 2019 - Content monetisation platforms with WordPress
WordCamp London 2019 - Content monetisation platforms with WordPress
 
MOBILE APP DEVELOPMENT ANDROID APP AND IOS APP
MOBILE APP DEVELOPMENT ANDROID APP AND IOS APPMOBILE APP DEVELOPMENT ANDROID APP AND IOS APP
MOBILE APP DEVELOPMENT ANDROID APP AND IOS APP
 
Homestead demo
Homestead demoHomestead demo
Homestead demo
 
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 

Basic Android Push Notification