google cloud messaging - When will InstanceIDListenerService be called and how to test it? -
with last changes android gcm instanceidlistenerservice provided able listen token refreshes overriding ontokenrefresh method.
but when method called? , there way test manually?
to test manually command line run:
adb shell startservice -a com.google.android.gms.iid.instanceid --es "cmd" "rst" -n your.package.name/your.own.myinstanceidlistenerservice
where:
- your app's package your.package.name
- the class name of instanceidlistenerservice implementation your.own.myinstanceidlistenerservice
this send intent service extras expected base class.
Comments
Post a Comment