通过使用着陆页操作,我能够在前台或后台状态下发送推送消息,如文档中所述,当用户下次打开应用程序时会显示该消息。
但我想在应用程序在前台状态下立即显示着陆页容器(不显示应用内通知并等待用户交互显示它)并立即显示(不要等到下一次启动) .
在文档中提到:
If you need to display a Landing Page while the app is in the foreground state, replace the registry predicate associated with that action with one that allows foreground execution.
如何检索此功能?
最佳答案
您可以更新谓词:
[[UAirship shared].actionRegistry updatePredicate:nil
forEntryWithName:kUALandingPageActionDefaultRegistryName];
关于ios - 在应用未显示内容时收到相应的推送通知时显示 Urban Airship 登陆页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32350465/