Haris
Haris

Reputation: 1862

Test Google Cloud Messaging Push notification through Gradle

I have configured Google Cloud Messaging Demo App in Android Studio. It is configured and showing screen "You can now use gcmsender to send downstream messages to this app."

To Test this Google says

When the sample application loads on your device, run the following gradle command to send a notification to all devices:

./gradlew run -Pargs=""

Can Any one guide here where and how to use this gradle command :

./gradlew run -Pargs=""

Thanks

Upvotes: 0

Views: 1214

Answers (2)

BlackHawk
BlackHawk

Reputation: 39

Use Android studio's terminal (left bottom) and type command which is written on https://developers.google.com/cloud-messaging/android/start?configured as it is, it will take time to download gradle services, till then you have to wait.

Upvotes: 0

Optimus NTL
Optimus NTL

Reputation: 124

You have to use the Terminal, simply click on the Terminal Option that you will see in the status bar at the bottom in Android Studio. It will launch up a Terminal window for you and the directory will be shown. You can now execute any Gradle tasks. Eg: gradlew run -Pargs="your_message"

Upvotes: 2

Related Questions