2015年8月21日 星期五

Android push Server test

Ref:https://developers.google.com/cloud-messaging/android/start?configured
1. First try
ASUS X450J Windows 10 + Android 1.2/1.3
Download Gradle for windows, fail to send message to GCM
2. Macbook Pro  OX 10.10.5 + Android 1.3
    ASUS zenfone 5 and 6
3. Both of zenfone 5 and 6
4. Download android examples
    https://github.com/googlesamples/google-services
5. Download google-Services.json


6. Copy to gcm/app folder
7. Replace API into Gcmsender.java
8. Install Quickstart sample into zenfone 5 and 6
9. ./gradlew run -Pargs="<message>"
  Automatically download and install package



10. ./graglew run -Pargs="推播中文Zenfone 5 and 6"
11. Response
12. Windows 


沒有留言:

張貼留言