如何在没有 iPhone 的情况下测试 Apple 推送通知服务? [英] How can I test Apple Push Notification Service without an iPhone?

查看:50
本文介绍了如何在没有 iPhone 的情况下测试 Apple 推送通知服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在没有 iPhone 应用程序的情况下测试 Apple 推送通知服务?(在 Windows 上创建模拟器?)

Is it possible test the Apple Push Notification Services without an iPhone application? (Creating an emulator on windows?)

如果不是,我该如何测试?是否有免费的示例应用程序编译来做到这一点?

If isn't, how could I test that? Is there a free sample application compiled to do that?

我创建了服务器提供程序,但我需要测试功能.

I created the Server provider, but I need test the functionallity.

推荐答案

此答案已过时.从 2020/Xcode 11.4 开始,现在可以在模拟器中测试推送通知

This answer is outdated. As of 2020 / Xcode 11.4 it's now possible to test push notifications in the simulator

下面的答案

抱歉,您需要找到一些硬件来测试此功能.

Sorry to say, but you'll need to find some hardware to test this functionality.

推送通知在模拟器中不可用.它们需要来自 iTunes Connect 的配置文件,因此需要安装在设备上.这也意味着您可能必须被 Apple iPhone 开发者计划接受并支付 99 美元.

Push notifications are not available in the simulator. They require a provisioning profile from iTunes Connect, and thus are required to be installed on a device. That also means you'll probably have to be accepted into the apple iPhone developer program and pay your $99.

好的一面是,随着 iPhone OS 3.0 更新,您可以在任何设备上测试此功能,包括第一代 iPhone.

On the bright side, with the iPhone OS 3.0 update, you can test this functionality on any device, including the first gen iPhones.

这篇关于如何在没有 iPhone 的情况下测试 Apple 推送通知服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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