How to change notification type from Banner to Alert in iOS8?

江枫思渺然 提交于 2019-11-29 16:40:13

I don't believe there is any way to programmatically force the system to display your notification as an alert rather than as a banner. Looking over the documentation for UILocalNotification and for UIUserNotificationSettings, I don't see anything that would allow you to specify that you want an alert instead of a banner.

It's up to the user to adjust their notification settings for your app - I would leave it to them to decide how they want to receive notifications.

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