小编Nar*_*dra的帖子

无法获得Urban Airship的推送通知

我正在将Urban Airship集成到我的Android应用程序中.我从那里得到了一个示例代码,我按照相同的步骤从我的应用程序中调用它.但是,我的设备上没有任何推送通知.

任何人都可以指导我如何在Android应用程序中集成Urban Airship吗?如何将AppId和GCM注册ID发送到Urban Airship服务器并获取通知?

public class MyApplication extends Application {

    public static SharedPreferences PREFS_TOKEN;
    public static final String PREFERENCE = "UrbanAirship";
    public static String tokenKey;

    @Override
    public void onCreate() {
        super.onCreate();

        AirshipConfigOptions options = AirshipConfigOptions
                .loadDefaultOptions(this);

        UAirship.takeOff(this, options);
        PushManager.enablePush();

        // Optionally, customize your config at runtime:
        //
        // options.inProduction = false;
        // options.developmentAppKey = "Your Development App Key";
        // options.developmentAppSecret "Your Development App Secret";
        // UAirship.takeOff(this, options);

        Logger.logLevel = Log.VERBOSE;

        // use CustomPushNotificationBuilder to specify a custom layout
        CustomPushNotificationBuilder …
Run Code Online (Sandbox Code Playgroud)

android push-notification urbanairship.com

10
推荐指数
1
解决办法
8934
查看次数

从APK确定签名证书

我已经从Eclipse为Android创建了一个签名的APK.我想知道在签名的APK中使用哪种RSA证书类型,如RSA-1024或RSA 2048.

我怎么知道来自APK文件?

编辑标题已更改为"在Eclipse中使用哪个RSA证书签名APK?如何知道RSA密钥大小(1024/2048)?"

eclipse ssl android rsa apk

8
推荐指数
1
解决办法
5535
查看次数

标签 统计

android ×2

apk ×1

eclipse ×1

push-notification ×1

rsa ×1

ssl ×1

urbanairship.com ×1