gpt4 book ai didi

android-studio - 安卓 : One Signal Push notification did not receive while the app is in use

转载 作者:行者123 更新时间:2023-12-03 16:18:08 25 4
gpt4 key购买 nike

我正在使用 一信号推送通知在我的应用程序中。当我的应用程序在 中时已关闭 这意味着当我不使用我的应用程序时,我 获取推送通知 来自我的测试团队发送的一个信号。但是当我我正在使用一个应用程序 , 我 没拿到它。

您的回答更受赞赏。

最佳答案

在最新版本 (3.+@aar) 中,您应该使用 inFocusDisplaying :

OneSignal.startInit(this)
.inFocusDisplaying(OneSignal.OSInFocusDisplayOption.Notification)
.init();

您可以设置 NoneInAppAlert而不是 Notification .

关于android-studio - 安卓 : One Signal Push notification did not receive while the app is in use,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36513218/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com