PushMeBaby 的基本使用

自己测试的话推荐PushMeBaby. 名

在github下载,https://github.com/stefanhafeneger/PushMeBaby

1,需要

aps_development.cer -> 去APPdevelop 下载

deviceToken  -> 在项目工程运行后获取

#pragma mark- 注册APNs后上报DeviceToken

 

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {

    // 注册 DeviceToken

    [[JPushTool shareJPushManager] cdm_registerDeviceToken:deviceToken];

 

  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

        [[EMClient sharedClient] bindDeviceToken:deviceToken];

    });

}

 

2, 

 

 3,

 

 ps: 你代码中可能拿不到.cer文件,那是你导入的不对,通过在项目上右击选择add File是肯定可以拿到文件的.

ps:

 

posted @ 2019-04-10 11:39  馒头_ZOOZ_  阅读(291)  评论(0)    收藏  举报