0
我正在開發將接收來自城市飛艇的推送通知的應用程序。我設法得到推送通知。 目前我已經添加了所有MyApplication類的代碼如何註冊城市飛艇的設備
AirshipConfigOptions options = AirshipConfigOptions
.loadDefaultOptions(Myapplication.this);
UAirship.takeOff(this, options);
PushManager.shared().setAlias("test");
// Tags
HashSet<String> tags = new HashSet<String>();
tags.add("tag1");
tags.add("tag2");
PushManager.shared().setTags(tags);
PushManager.enablePush();
PushManager.shared().setIntentReceiver(IntentReceiver.class);
String apid = PushManager.shared().getAPID();
Logger.info("My Application onCreate - App APID: " + apid);
它總是顯示「您沒有註冊還沒有任何設備令牌」。 我如何在城市飛艇上註冊設備?誰能幫我嗎 。
城市飛艇的SDK將自動註冊設備令牌或APIDs你。我建議在這裏查看他們的示例應用程序或他們的文檔:http://docs.urbanairship.com/build/android.html和這裏:http://www.urbanairship.com/resources/developer-resources – dperconti