Push Notification is a service which notifies a user of new messages or events even when the user is not actively using your application. Let us see how to create an Android Push Notification Using Parse.
http://shaved-ice-truck.com/dо-yоu-knоw-thе-difference-bеtwееn-ice-cream-аnd-gelato/ Parse Database:
It is a powerful cloud database that provides a lot of services like push notification services and analytic tracking to your app etc.
see url Step 1: GCM Registration
Google Cloud Messaging (GCM) is a free service that helps developers send messages across multiple platforms: Android, iOS, and Chrome.
I. Sign in or Sign Up to your Google Developer Console you can use your google account.
II. Accept terms and conditions.
after that, you can view your dashboard.
III. Accept terms and conditions
A page appears that shows your APP project ID and project number. You will use project ID later on as the GCM sender ID.
IV. To enable the GCM service by click In the sidebar on the left, select APIs & auth and turn the Google Cloud Messaging for Android toggle to ON.V. To generate key by click In the sidebar on the left, select credential and click create new key button .VI. select server key and click create button please note down your API key.
http://firehousedancehall.com/phone-pictures-075/ Step 2: Enable push notifications android App
I. Open your application and Add the following XML to your AndroidManifest.xml file immediately before the closing tag:
II. Set permissions in your AndroidManifest.xml file,immediately before the <application> tag:
Replace “YOUR_APP_ID” and “YOUR_CLIENT_KEY” with your Parse app’s id and client key.
V. To subscribe to the broadcast channel, add the following code to the onCreate method of your Application class.
Step 3: Parse Push Notification Settings
I. Go to your parse Push Notification Settings page then enable Client push enabled.
II. Enter your GCM Push Credentials on your parse Push Notification Settings page.
Now you can able send push Notification and you can also send sample Push notification by click on “send push notification” button in parse Database.
We are Perfomatix. We specialize in building highly scalable APIs and Mobile apps and we also have strong expertise in IoT apps, Virtual Reality apps, and Augmented Reality apps. Get in touch with us to find out how we can help in shaping your disruptive idea into a prototype, MVP and finally into a killer product. Visit our success stories section to find out more about some of the startups which made it big with us.