Show alert on screen when app is in background

隐身守侯 提交于 2019-12-04 09:53:10

You will not be able to detect if you user decided to ignore your UILocalNotification. Since you can not show a UIAlertView in the background your only option is to use UILocalNotification.

But as you state you can not detect if the user clicked the cancel button, also with iOS6 and the notification center there no longer is a cancel button. Only if user selected to show you notifications as alerts will there be a close button. Still you can not detect that you notification is closed or not views at all.

Your only option is to keep spamming the use with notification until the app is opened. But it is considered bad user experience and could make you app hated by users.

this not posible in ios.only using push notification you can display it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!