[英]Appcelerator: Show push messages in the Notification Center when the app is in the foreground (open)
If the iOS app is open and a push message arrives, the push message does not appear in the NotificationCenter.如果 iOS 应用程序打开并且有推送消息到达,则推送消息不会出现在通知中心中。 I can process the content in the opened app.
我可以处理打开的应用程序中的内容。 But the typical banner doesn't come.
但典型的横幅并没有出现。
Does anyone have a solution for Appcelerator (iOS)?有没有人有 Appcelerator (iOS) 的解决方案?
Or do I know whether the app was opened via a push message?或者我是否知道该应用程序是否是通过推送消息打开的?
Thank you谢谢
You have to create an alert or something else yourself while the app is running in foreground.当应用程序在前台运行时,您必须自己创建警报或其他内容。 The notification will only appear when it is in background.
通知只会在后台显示。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.