• IOS 推送摘要


    工作原理:

    Provider------(消息)------>APNS------(消息)------>iPhone------(消息)------>App

    Provider:推送发起者

     APNS:apple提供的推送服务器


    我们所需要的准备:

    1.AppleID:需要开启推送

    2.SSL证书:(使用钥匙串工具生成CSR,然后用来申请SSL)

    3.profile:配置文件

    接下来是App方面:

     1.app需要向apns注册通知:

    [[UIApplication shareApplication]registerForRemoteNotificationTypes:types];

    2.app利用委托接收到token

    [application:didRegisterForRemoteNotificationWithDeviceToken:]//成功收到令牌
    [application:didFailToRegisterForRemoteNotificationsWithError:(NSError*)error];//令牌创建失败

    3.app响应通知

    [application:didReceiveRemoteNotification:];

     详细的一个php作为推送服务器的教程:

    http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

  • 相关阅读:
    2020软件工程作业04
    2020软件工程作业03
    2020软件工程作业02
    2020软件工程作业01
    问题清单
    2020软件工程个人作业06
    2020软件工程作业05
    2020软件工程作业00
    2020软件工程作业04
    2020软件工程作业03
  • 原文地址:https://www.cnblogs.com/cokecoffe/p/3040699.html
Copyright © 2020-2023  润新知