当应用收到推送通知并且手机锁定时,我希望在我的应用中显示相同的提醒.提前致谢..
解决方法 您无法通过编程更改默认通知警报样式.您可以从iPhone或iPad进行设置
>从iPhone主屏幕打开“设置”应用.
>点按“通知”设置窗格.
>点击要为其配置警报样式的应用程序的名称.
>选择d出警报,横幅警报或无警报.
您可以查看答案以获得更多帮助:iOS PUSH notification type options? Alert vs Banner?
见另一个答案:How to change notification type from Banner to Alert in iOS8?
总结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 07002
and for
07003,
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.
以上是内存溢出为你收集整理的ios将锁定屏幕通知类型表单横幅更改为警报类型全部内容,希望文章能够帮你解决ios将锁定屏幕通知类型表单横幅更改为警报类型所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)