简体   繁体   English

使用推送通知IOS发送应用程序版本

[英]sending application version with Push Notification IOS

My Inglês is not very good, but I'll try to explain. 我的英语不是很好,但是我会尽力解释。

To send a new version of the application with push notification, you must select the X CODE - Build Phases, Provisioning Profile option in my push production certificate ?? 要使用推送通知发送应用程序的新版本,必须在我的推送生产证书中选择X CODE-Build Phases,Provisioning Profile选项。

issue 2 第2期

I'm using google GCM, Developing it worked fine, but now in production can not upload my certificate push production in gcm he says (The Bundle ID in the certificate does not match the Bundle ID you entered.) This error will not be by que I sent my version with the no provisioning profile with my certificate ?? 我正在使用google GCM,但开发工作正常,但现在无法在gcm中上载我的证书推送产品(他说(证书中的Bundle ID与您输入的Bundle ID不匹配。))问:我发送的证书中没有提供配置文件的版本吗?

The apple should not stop it? 苹果不应该停止吗?

Apple APN has nothing to do with GCM, it is completely incompatible with it. Apple APN与GCM无关,它与GCM完全不兼容。 As soon as you create a new App APN certificate, you must use a new provisioning profile: the previous one won't include APN support. 创建新的App APN证书后,您必须使用新的配置文件:以前的配置文件不包含APN支持。 APN support is added automatically, provided you use the right provisioning profile, you don't need to touch any setting, save adding the push handling code in your app source code with XCode. 如果您使用正确的配置文件,则无需添加任何设置即可自动添加APN支持,只需使用XCode将推送处理代码添加到应用程序源代码中即可。 This applies to both production and sandbox. 这适用于生产和沙箱。

With Apple iOS Push Notifications, or Apple APN for short, you use two separate servers and certificates for "sandbox" (debug) and "production". 使用Apple iOS推送通知,或简称为Apple APN,您将两个单独的服务器和证书用于“沙盒”(调试)和“生产”。 APN notifications don't work within the simulator. APN通知在模拟器中不起作用。 If you use the Sandbox outside debug mode, it won't work. 如果您在调试模式之外使用沙盒,它将无法正常工作。

If you use notifications in production, or deploy AD Hoc versions of your app, you must use the PRODUCTION servers and the production APN certificate, even if you are using an Ad Hoc compile to test the app. 如果您在生产中使用通知,或部署应用程序的AD Hoc版本,则即使使用Ad Hoc编译来测试应用程序,也必须使用PRODUCTION服务器和生产APN证书。

You must set up your App APN certificates within iTunes Connect, in Apple Developer Portal, and then install these Push certificates within your own APN server (which will comunicate with Apple's Push servers). 您必须在Apple Developer Portal的iTunes Connect中设置您的App APN证书,然后在您自己的APN服务器(与Apple的Push服务器通信)中安装这些Push证书。 The path specified in these certificates must match your App's and can't be generic or team. 这些证书中指定的路径必须与您的应用程序匹配,并且不能是通用的或团队的。

Your own server APN server communicates with Apple APNS servers. 您自己的服务器APN服务器与Apple APNS服务器进行通信。 You can't send Push Notifications to iOS devices directly, without passing trough Apple servers first. 您不能直接将推送通知发送到iOS设备,而无需先通过Apple服务器。 You do so using a protocol. 您可以使用协议进行操作。

You can find a technical description of APN service here 您可以在此处找到APN服务的技术说明

Several pre made APN servers and APN libraries exist, for several programming languages and operating systems. 存在几种用于几种编程语言和操作系统的预制APN服务器和APN库。

If you don't want to deploy your own, you can use a third party service, eg Urban Airship. 如果您不想自己部署,则可以使用第三方服务,例如Urban Airship。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM