【问题标题】:iOS push notification device token for development and production用于开发和生产的 iOS 推送通知设备令牌
【发布时间】:2014-03-17 09:03:54
【问题描述】:

有人知道 iOS 推送通知的设备令牌对于开发和生产构建是否相同?

【问题讨论】:

    标签: ios push-notification apple-push-notifications


    【解决方案1】:

    客户端在注册自己的开发版本与从 App Store 下载的应用程序时获得不同的设备令牌。

    注意生产环境中的设备令牌和开发环境中的设备令牌不是同一个值。

    参考:https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html

    【讨论】:

    【解决方案2】:

    生产 APNS 系统完全独立于开发(沙盒)APNS 系统。有单独的证书和服务器地址。当您使用开发配置文件运行应用程序时,将使用沙盒 APNS,当您归档应用程序(使用分发配置文件)或将应用程序提交到 App Store 时,生产 APNS 负责。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-30
      • 2015-08-29
      • 2010-11-23
      相关资源
      最近更新 更多