zoukankan      html  css  js  c++  java
  • ios8中百度推送接收不到

    ios8中百度推送接收类型会有所改变:

    //消息推送注冊

        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)

        {

            [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings

                                                                                 settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)

                                                                                 categories:nil]];

            [[UIApplication sharedApplication] registerForRemoteNotifications];

        }

        else{

            [[ UIApplication sharedApplication ] registerForRemoteNotificationTypes :( UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert )];

        }


    //取消推送

    [[ UIApplication sharedApplication ] registerForRemoteNotificationTypes :( UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert )];


  • 相关阅读:
    [机器人仿真软件(一)]V-REP与MATLAB进行通讯的方法
    TCP接收非法数据0xFFF4FFFD06的问题
    std::numeric_limits::epsilon
    linux 设置默认网关
    更换pip源
    实时屏幕传输
    安装node
    window 添加服务
    数据集格式
    jupyter 设置密码
  • 原文地址:https://www.cnblogs.com/zfyouxi/p/5257668.html
Copyright © 2011-2022 走看看