在Mavericks iOS模拟器中推送通知

问题描述:

我找不到任何关于此的内容,我从未对推送通知做过任何事情(但我隐约知道它们是如何工作的)。在Mavericks中,现在OS X可以从各种网站接收推送通知,iPhone模拟器可以接收推送通知吗?我从2013年中期找到了很多答案,早些时候说不,但所有这些都已经过时了,因为最近刚刚发布了Mavericks的新推送功能。

I can't find anything about this, and I have never done anything with push notifications (but I know vaguely how they work). In Mavericks, now that OS X can receive push notifications from various things like websites, can iPhone Simulator receive push notifications? I've found plenty of answers from mid-2013 and earlier saying "no", but all of them are outdated because Mavericks was just recently released with its new push features.

我即将开始研究一个应该使用推送通知的学校项目的应用程序,除非我想要便宜并且只是轮询服务器。我知道你需要一个iOS开发者帐户来使用推送通知,但是如果我可以在我的电脑上测试它会让我的生活变得更轻松。

I'm about to start working on an app for a school project that should use push notifications unless I want to be cheap and just poll the server. I understand that you NEED an iOS developer account to use push notifications, but it would make my life a lot easier if I could test on my computer.

不,在模拟器中仍然没有支持推送通知的API。你必须使用一个设备。

No, there is still no API to support push notifications in the simulator. You’ll have to use a device.