简体   繁体   English

iOS获取本地通知的属性

[英]IOS get Property of Local Notification

Is it possible to ask the user to select notification type "alerts" by presenting them an option at install. 是否可以要求用户通过在安装时显示选项来选择通知类型“警报”。 Similar to how we ask users to enable location services some thing like that. 类似于我们要求用户启用位置服务的方式。

ie i need current " notification style " to check whether it is banner or alert type ? 即我需要当前的“ 通知样式 ”来检查它是横幅还是警报类型?

I do not think you can do this since Apple hasn't exposed any methods to change the banner types. 我认为您无法执行此操作,因为Apple尚未公开任何更改横幅类型的方法。

You can read up on following post for possible solutions, 您可以阅读以下文章,了解可能的解决方案,

Set default iOS local notification style for application 设置应用程序的默认iOS本地通知样式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM