Actions buttons not showing up in local notifications ios 9.2 swift 2

假如想象 提交于 2019-12-08 16:51:32

Ok, I found the problem and this may be useful for someone in the future:

I had

UIApplication.sharedApplication().registerUserNotificationSettings(notificationSettings)

was called twice in two different places in the application (because I had setting in the application, and needed to alter it from settings page). So when refactored, and called it once, it worked.

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