I am trying to implement Google Cloud Messaging for Android (GCM)
by following the demo
But i am unable to execute some command like $ ant war
,$ android update project --name GCMDemo -p . --target android-16
.
I am using wamp server
and targetting Android 8+
Any help would be highly appreciated
Google Cloud Messaging (GCM) is a service that allows you to send push notifications from your server to your users' Android devices, and also to receive messages from devices on the same connection.
The first step in GCM is that a third-party server (such as an email server) sends a request to Google's GCM server. This server then sends the message to your device, through that open connection. The Android system looks at the message to determine which app it's for, and starts that app.
Select the Cloud Messaging tab. Under "Cloud Messaging API (Legacy)" click on the options (three dots on the right) and click "Manage API in Google Cloud Console". This will open a new page, under Cloud Messaging press "Enable".
If you want to execute $ant war
command:
ant war
command into Windows command line (prompt).
After ant war
command .war
file will be created. .war
file on tomcat server for example. (create Java EE project, then download and install tomcat server, configurate paths, and run your project on tomcat server...)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With