javascript - Implementing InstanceIDListenerService in Appcelerator -


i trying take care of updated gcm tokens in appcelerator project. far understand should create service intent-filter this:

<service url="testservice.js" type="standard">     <intent-filter>         <action android:name="com.google.android.gms.iid.instanceid"/>     </intent-filter> </service> 

do need make sure actual ontokenrefresh() or enough take care of gcm token update when service started?

is possible ontokenrefresh() call in javascript or need implement in native module extending instanceidlistenerservice class?

i've checked several gcm modules none seem use ontokenrefresh. way, need wrap in titanium module. it's not can access js.


Comments