Google Cloud Messaging - GCM - SERVICE_NOT_AVAILABLE

后端 未结 6 1780
小蘑菇
小蘑菇 2021-02-04 00:28

I am trying, to implement the new GCM, I am following Google get stated : http://developer.android.com/guide/google/gcm/gs.html

I getting stuck at getting my de

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 01:11

    android:enabled="true"  
    

    Remove this ^

    If you don't already add this to your manifest

    You don't need the second constructor in GCMIntentService. only this one

    public GCMIntentService() {         
     super(SENDER_ID);  }
    

    Ensure that your SENDER_ID is the number copied out of the URL from your browser while you are browsing the google code website AND browsing the GCM service.

提交回复
热议问题