remotenotificationReceivedHandler未设置,显示正常的信号通知颤动
处理发作的背景通知。当应用在后台时,我想在控制台中打印我的通知。对于前景通知,我使用了setNotificationwillShowinForegroundHandler。现在用于处理背景通知悬挂。
handle background notification in onesingnal flutter. i want to print my notification in console when app is in background. for foreground notification i used setNotificationWillShowInForegroundHandler. now for handling background notification flutter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当该应用终止时,您无法打印任何内容,但是如果该应用程序在后台运行,则可以打印通知或通知其他数据。
在Android>中添加notificationserviceextension.jave文件app> src> Main> Kotlin>在MainAttivity旁边
添加以下代码:
不要忘记在清单Android中的应用程序标签下方添加这些标签
when the app is terminated you can’t print anything but if the app is running in the background you can print notifications or notification additional data like this.
add NotificationServiceExtension.jave file in android > app > src > main > kotlin > next to mainActivity
add the following code:
don't forget to add these tags just below application tag in manifest android