Friday, 4 September 2015

GCM Android Application using Eclipse :  How To Send Push Notification using GCM(Google Cloud Messaging) in Eclipse 

Previous steps in previous page GOTO BACK

4. Open Eclipse and Make a Project

first you need to download & install Eclipse

Download link Here

Install Eclipse is very easy

a. extract the zip files in Local disk C:
b. just click the icon on Eclipse icon

Eclipse wil run automatically

Detailed Eclipse installtion & sdk installation in another blog Link Click here


open your Eclipse first check your SDK files. 


eclipse opened



then click the icon 


you will see like that 
check the "android play services library is check in "




next you close the sdk window and start the process

Download this project here


CLICK DOWNLOAD

After complete download



Goto Eclipse-->
File--> import--->Android--->Exisiting Android code into workspace
then click next-->select your code (downloaded & extracted)






then click finish button

Wait For loading it take 2 r 3 mins..... 




Click that Green Play button under "Project"

Click "Green" and Run Project


Then Connect your phone as emulator with USB Debugging in Developer Options

How to connect android phone as debugging mode check my previous blog's




Yours device open like that window..
type details email& name
and hit register



u will see "device registered successfully"

goto check and run your project in your browser



you wil see like that..
just enter your message and click send button


Note: i have use my ip address "192.168.2.2", but you use only "localhost"
type "localhost/gcm_server_php"



FInally you will see your mobile in notification panel , it contains you sended message in browser.
So thats the GCM PUSH NOTIFICATIONS


No comments:

Post a Comment