ios 8 interactive notifications not showing actions

夙愿已清 提交于 2019-12-01 22:51:07
Zaraki

Check for the following in you code if it is anywhere else as well:

 [[UIApplication sharedApplication] registerUserNotificationSettings:settings];

Since, UIUserNotificationSettings is singleton, whenever you call this, it overwrites the old settings. So if new settings is registered without any buttons it will not show any buttons.

Better way of registering new setting is explained here: Interactive push notifications - Hide/Show buttons

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