【问题标题】:ios 8 Simulator , is it possible to send push notification to the simulator [duplicate]ios 8 Simulator,是否可以向模拟器发送推送通知[重复]
【发布时间】:2014-11-17 05:23:13
【问题描述】:

当我在 ios 8 Simultor 中运行该应用程序时,它会显示您是否要允许推送通知的警报,并且在设置中我可以看到推送通知已启用。那么在这里我们可以向模拟器发送推送通知吗?有可能吗?

【问题讨论】:

标签: ios push-notification ios8 ios8.1


【解决方案1】:

是的,您可以在模拟器上查看推送通知,但您必须在应用程序中使用名为 SimulatorRemoteNotifications 的库。只需使用 4-5 个步骤,您就可以在模拟器上测试推送通知。

他们也提供 POD

pod 'SimulatorRemoteNotifications', '~> 0.0.3'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-28
    • 2014-03-11
    • 1970-01-01
    • 1970-01-01
    • 2014-02-26
    • 1970-01-01
    相关资源
    最近更新 更多