GCM with custom broadcastreceiver

后端 未结 4 397
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 11:14

I am implementing gcm notifications in my application. Because I use my code to generate lot of application with different package names I cannot use standard mypackage.GCMI

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-28 11:38

    The gcm broadcast receiver (GCMBroadcastReceiver.class) calls intent service class (GCMIntentService.class) from application root directory. You cannot use "org.rferl.service.GCMIntentService" right now. You should override getGCMIntentServiceClassName method from GCMBroadcastReceiver, that returns name of your GCMIntentService class. How to do that, here

提交回复
热议问题