Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果用户未登录,我对如何在 react-native 应用程序中处理通知感到困惑。我通过 OneSignal 向应用程序发送推送通知,但如果用户未登录,我不应该发送通知,我该如何检查用户是否登录?
注销时,可以尝试调用OneSignal.removeExternalUser()方法。并登录,OneSignal.setExternalUserId(userId).
OneSignal.removeExternalUser()
OneSignal.setExternalUserId(userId)
标签不会破坏位置?