Oh no Google did it again! This was my first reaction when I started implementing push notification in one of my projects. After going through the Docs I figured out that Google has changed the previous way of implementing push notification.
So I decided to write about the new ways of implementing push notification so that it could help fellow developers.
1. Create Project on Google Developer Console: While most of you would already know how to do that, there’s no need to worry even if you don’t, just follow the steps mentioned here- http://developer.android.com/google/gcm/gs.html
After project creation, a unique Project ID and Project Number are generated for your project.
Don’t forget to copy and save them for future use.
2. Enable the GCM Service
Inside the developer console (https://console.developers.google.com) you will see a side bar on the left hand side, where you will find APIs & Auth, select that, and a list of Google APIs will pop up in front of you.
Try to find the Google Cloud Messaging for Android and click on it to ON.
The GCM service is now enabled!
3. Get an API Key
When APIs & Auth is expanded, you must find Credentials, clicking on which will make you find two sections- OAuth section and Public API access Section. In the Public API access Section, you would also find a red button, “Create new Key”, clicking on which will give you an API key that you need to save for future use.
Now that you have created your project, enabled the GCM service, and yes, generated API key also, so you are good to go ahead and implement push notification in your application. However, before implementing that make sure that you have set up your project to use Play Services SDK.
4. Now Add Some Permission To your Manifest File
5. And some Copy Paste of Codes
Finally, you just need to show your copy pasting skills. Go through the link, http://developer.android.com/google/gcm/client.html, and follow the step 3. And voila! You have the push notification functionality in your application- now you can raise your hands and say, “Yes! I have done it!”
Posted by- Azhar Eqbal
Disclaimer: Developer’s Corner Section of ISHIR blog is contributed and maintained by independent developers. The content herein is not necessarily validated by ISHIR.
- Big Data Analytics
- Microsoft Windows Server
- Open Source
- Managed Security Services
- Artificial Intelligence
- PSD Slicing
- Developers Corner
- Pay Per Click (PPC)
- Mobile Application Development
- Managed Hosting
- Microsoft .NET Custom Development
- Software Testing
- Microsoft SharePoint Development
- Microsoft Windows Azure
- Offshore Development
- Outsourcing Software Development
- Microsoft Office 365
- Non-Profit IT
- Application Virtualization & Packaging
- Digital Marketing
- Search Engine Optimization (SEO)
- Social Media
- Website Development
- Cloud Computing
ISHIR is a globally diversified leading offshore software development company with experience and expertise in a broad range of services and solutions. With 15 years of experience in the IT industry, ISHIR enables cost-effective and dependable software outsourcing solutions. We have over 900 satisfied clients across the globe and matured to become an extension of their internal teams.
We are experts in the field of software development, web design and development, managed cloud services, software testing, application development services and customer software development. India is a sought after market for addressing software development outsourcing requirements for enterprises across the world. ISHIR offers the value add of in-depth knowledge of all the key industries combined with the commitment to innovate and offer next-generation technological advantage. As a renowned custom software development company in India, one of the key differentiators that we offer is to understand our clients’ business objectives and challenges and align the right technology to provide customized solutions.
Headquartered in Dallas, with global delivery center in Noida, India, we are one of the preferred software development companies with a unique combination of skilled people, world-class processes and robust technology. ISHIR has a successful track record of delivering hundreds of projects using various tools and technologies. We have delivered on-time and on-budget custom software development services and application development services. Using our flexible delivery models, we have ensured success in all our offshore outsourcing projects. We have added substantial value and savings for our clients, often exceeding up to 85%, making us a dependable offshore Software Development Company. As a front runner software development company, India, we ensure that we go the extra mile to maximize ROI for our clients and act always as a trusted advisor of our clients.