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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -