开发者

Access Urban Airship Constant From PhoneGap

开发者 https://www.devze.com 2023-03-23 02:11 出处:网络
Does anyone know how I can access the APID constant - EXTRA_APID (com.urbanairship.push.APID) 开发者_高级运维from within PhoneGap or in Javascript?

Does anyone know how I can access the APID constant - EXTRA_APID (com.urbanairship.push.APID) 开发者_高级运维from within PhoneGap or in Javascript?

Thanks!


I had to write a Java plugin for PhoneGap using this to get the APID:

PushPreferences prefs = PushManager.shared().getPreferences();
String apid =  prefs.getPushId();

Then access this variable from javascript as per the PhoneGap plugin docs.

0

精彩评论

暂无评论...
验证码 换一张
取 消