Home > other >  GCM client access notes
GCM client access notes

Time:09-24

Company project is due to demand to access GCM, so,,
Preparations for the :
The first step over the wall
The second android devices: make sure you have the complete Google service framework, or is less than GCM service, if not, then the root of your android device, go to the next Google installer

down to business! [/b
[b] to the first step is to obtain parameters

Then you must have a Google account, then create a project, and to set up your project open GCM service, create out will have the following picture



save good, the above Server API Key is a game Server to be used, the following send_id is what the client to request registrationId,

The following is the specific steps
To apply for Google account
The development of Google management platform
Create engineering (Google management platform Project)
Open the Google Cloud Messaging API,

to the second step, to get the jar packages and demo

for Google to jar package, so you over the wall yo
Over the wall after a successful
Open your eclipse, which in turn open - & gt; The Window - & gt; Android SKD Manager
Then you will see the Android SKD Manager interface to drag the Extras option below, be sure to check the following Obsolete Select (outdated),
Then you'll see the Google Cloud Messaging for Android Library click Obsolete Selec on the right side of the Install packages... The button
The following figure


(I've been to download, click on another for example)
Under the pop-up interface



Then click on the project (by this time your target project is a cross), click the Accept on the right side of the License, then you will find that the cross not
The install button into a clickable condition, click install will start to download,



Finished downloading, under your eclipse directory will be many a GCM folder below
(can't find the Path, can look at the Android SDK Manager page first, the Path of the Path that you download the SDK SDK)



Once open the path to the above, you will see there are samples, samples below gam - demo - this is our client want to demo, jar package is the demo the libs folder below the following gem. Jar,








  • Related