【问题标题】:Android push notification via GCM and Urban Airship通过 GCM 和 Urban Airship 的 Android 推送通知
【发布时间】:2012-12-15 10:59:01
【问题描述】:

我已经从 google gcm 客户端示例开始实施和应用程序。 我得到了一个 regId,这似乎没问题,之后当我尝试使用 Urban Airship 发送推送时,我将我的 regId 放在 APID 字段中,但出现错误:APID 无效。

也许我应该使用android中的城市飞艇示例来获取apid?

我认为 APID 和 regID 是一回事。我说的对吗?

【问题讨论】:

  • 我解决了我的问题。 UrbanAirship 的 APID 与 regID gcm 不同。因此,您必须使用 UrbanAirship .jar 库生成您的 APID。

标签: android push-notification urbanairship.com


【解决方案1】:
   PushManager.shared().setIntentReceiver(PushNotificationPluginIntentReceiver.class);
            String apid = PushManager.shared().getAPID();
            log.info("My Application onCreate - App APID: " + apid);
        }

使用这段代码获取客户端应用ID,它将用于测试推送

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-04
    相关资源
    最近更新 更多