Google cloud messaging (GCM) for Android, Android platform message push technology (I): Build a Google API Project

Source: Internet
Author: User

Recently, due to work relationships, we need to push messages to customers on the Android mobile phone platform. The original push technology on the Android mobile phone platform uses c2dm (cloud to device messaging framework ), however, this year, Google announced its end of support and development and its acceptance of new user registration. Google then officially launched GCM (Google cloud messaging) to replace c2dm. Next we will implement message push based on the example provided by Google.

First, we need to create a Google API project using the Google account. For details, visit Google's webpage: http://developer.android.com/guide/google/gcm/gs.html. Shenma, you do not have a Google account? Register a Google email address! -_-.

After the project is created, go to your Google API console page, and the URL will be changed to https://code.google.com/apis/console/?project:4815162342,4815162342your Project ID. Remember that we will use this ID to push all the subsequent.

On this page, find the service and change the service status of Google cloud messaging for Android to open.

Go to the API access page and create a server key and browser key. You can add a restricted IP address on the page to obtain the server apps API key. In this way, the preliminary work is basically completed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.