iPhone:生产证书推送通知测试 [英] iPhone: Push Notification Testing on Production Certificate

查看:32
本文介绍了iPhone:生产证书推送通知测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的问题.我一直在为我的 iPhone 应用程序测试开发推送通知证书并且它运行良好.我只想知道在将我的应用程序提交到 AppStore 之前是否可以测试生产证书?我确实尝试过,但是当我使用生产证书时没有出现消息.当我使用生产证书时,Apple 是否要求应​​用程序在 AppStore 中?

I have a quick question. I have been testing Development Push Notification Certificate for my iPhone App and its been working fine. I just want to know that is it possible to test Production Certificate before submitting my application to AppStore? I did try but message is not coming along when I use production certificate. Does Apple required application to be in AppStore when I use production certificate?

谢谢.

推荐答案

如果您创建 Ad-Hoc 配置文件,您会发现它使用生产证书,这可能是测试它的最简单方法.

If you create an Ad-Hoc Profile, you'll find that it uses the production certificate, that's possibly the easiest way of testing it out.

更新:

请参阅 此处的 Apple 文档

这有很多步骤,但本质上是;

There are a number of steps to this but in essence;

1) 团队负责人需要创建一个新的 DISTRIBUTION 配置文件.这是通过在创建新配置文件时选择Ad Hoc"而不是App Store"来完成的.请注意,您不能为此使用通配符应用程序 ID,您需要为该应用程序提供一个特定的应用程序 ID,尽管您可能已经有了.

1) The team leader needs to create a new DISTRIBUTION provisioning profile. This is done by selecting "Ad Hoc" rather than "App Store" when creating a new profile. Note by the way that you can't use a wildcard app id for this, you need to have a specific app id for the application although you may well have this already.

2) 设置您的系统,以便存档构建使用新创建的 Ad Hoc 配置,设置所需的步骤在网上有详细记录,这是一个例子.

2) Setup your system so that build for archive uses a newly created Ad Hoc configuration, the steps required for setting this up are well documented online, here is one example.

3) 现在,当您将 .ipa 分发到链接到您的 Ad Hoc 配置文件的设备时,您会发现推送通知系统正在使用生产服务器.

3) Now when you distribute the .ipa to devices linked to your Ad Hoc provisioning profile, you will find that the push notification system is using the production servers.

顺便说一句,我发现 testflightapp 对于管理 Ad Hoc 构建的分发非常有用,虽然我最近才发现它,但它现在为我节省了几个小时,因为我正在运行测试版测试程序.

As an aside, I find that testflightapp is really useful for managing the distribution of Ad Hoc builds and although I've only discovered it recently, it's saving me hours at the moment as I'm in the middle of running a beta test programme.

这篇关于iPhone:生产证书推送通知测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆