简体   繁体   English

Appcelerator:当应用程序在前台时(打开)在通知中心显示推送消息

[英]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.

相关问题 当应用程序处于前台时,Appcelerator iOS 推送通知不起作用 - Appcelerator iOS Push notification not working when app is in Foreground 如何在应用程序打开时使推送通知显示在前台 - How to make push notification appear in foreground when app is open 仅在IOS中前台运行App时获取Appcelerator Titanium推送通知 - Get Appcelerator Titanium push notification while App in foreground in IOS only 在应用打开时显示本机推送通知? - Show native push notification when app is open? Appcelerator iOS推送通知显示在前台 - Appcelerator iOS push notification displaying in foreground 应用程序位于前台时推送通知样式 - Push notification style when app is in foreground 离子1信号有一种方法可以知道从背景到前景打开应用程序或启动应用程序时是否有推送通知 - ionic 1 onesignal is there a way to know if there is a push notification when open app from background to foreground or launching app 当应用程序在前台时,如何使远程通知出现在通知中心? - How to make remote notification appear in notification center when app is in the foreground? 当应用程序为前台时如何显示本地通知 - How to show local notification when app is foreground Ionic 2 - 当应用程序在IOS上处于前台时显示通知 - Ionic 2 - Show notification when app is in foreground on IOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM