[英]NewsStand, Show the push notification alert view when I want?
I know this has been asked: How to show "Would like to send you Push Notifications" Alert View again?我知道有人问过这个问题: 如何再次显示“想要向您发送推送通知”警报视图? ... But My question is kind of different.
......但我的问题有点不同。 My question is that is it possible to prompt this when ever I want programmatically (not for debugging but for real).
我的问题是,当我想要以编程方式(不是为了调试,而是为了真实)时,是否可以提示这一点。 Probably not because this is an alert triggered by the operating system, but is there a way to "undo" if a user clicked "don't allow".
可能不是因为这是操作系统触发的警报,而是如果用户单击“不允许”,是否有办法“撤消”。 My app has a tutorial I want to pop this message when the user finishes the tutorial.
我的应用程序有一个教程,我想在用户完成教程时弹出此消息。 Should I just register for push notifications after the tutorial?.
我应该在教程结束后注册推送通知吗? Or what the user has to "allow" on the settings menu so I can add it to the tutorial.
或者用户必须在设置菜单上“允许”什么,以便我可以将其添加到教程中。 Thanks
谢谢
To trigger popup you provide on image you should call要触发您在图像上提供的弹出窗口,您应该调用
[[UIApplicaton sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeNewsstandContentAvailability]
This is possible to do in any place in app.这可以在应用程序的任何地方进行。
To check available permissions use:要检查可用权限,请使用:
UIRemoteNotificationType* enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.