如何在应用程序关闭时发送推送通知?
我想发送一个简单的本地推送通知,当应用程序因任何原因关闭时,该通知会显示以下内容;
“您已退出 iDHSB”
我该怎么做?
查看了苹果的资源,但它有点复杂,并认为代码可以更短地实现我想做的事情......
谢谢,
詹姆斯
I would like to send a simple local push notification which says the following when the app is closed for whatever reason;
"You've been logged out of iDHSB"
How would I do this?
Taken a look at Apple's resources but it was a bit involved and thought that the code could be much shorter for what I want to do...
Thanks,
James
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了严重违反每个用户的舒适度之外,您还可以通过使用 本地通知。
Beside some serious violation of every users comfort level you could achieve that by using local notifications.