如何在 cordova 获得一个信号球员id并在移动的应用程序中提醒该id?还想知道如何发送特定球员ID的通知?
rjee0c151#
您可以通过执行以下操作来获取userId:OneSignal.getUserId()要了解有关getUserId()的更多信息,请执行以下操作:https://documentation.onesignal.com/docs/web-push-sdk#user-ids要了解有关向特定用户发送推送通知的详细信息,请参阅:https://documentation.onesignal.com/reference/create-notification#send-to-specific-devices
OneSignal.getUserId()
1条答案
按热度按时间rjee0c151#
您可以通过执行以下操作来获取userId:
OneSignal.getUserId()
要了解有关getUserId()的更多信息,请执行以下操作:https://documentation.onesignal.com/docs/web-push-sdk#user-ids
要了解有关向特定用户发送推送通知的详细信息,请参阅:https://documentation.onesignal.com/reference/create-notification#send-to-specific-devices