Open Trungduc79 opened 7 months ago
@Trungduc79 Thanks for sharing the code but could you provide these details?
OneSignal.getUserId().then()
firing with a null response or not at all?@jkasten2 Thank for your respone !,I give you for more detail,
Is the OneSignal.getUserId().then() firing with a null response or not at all? -> This function return a null result.
Can you also provide more details such as what browser and operating systems you have tested? -> I was run by Chrome, MS EGD on Windows system + Chrome mobile. But same result.
Can you check the browser's network tab to see if there is a failing request to onesignal.com? -> Request find, test send a message stil work. Consol no error.
Is a user and subscription being created on the OneSignal dashboard after accepting notification permission? -> --- My bad ---- -> This still created a new user,
@jkasten2 Thank for your respone !,I give you for more detail,
Is the OneSignal.getUserId().then() firing with a null response or not at all? -> This function return a null result.
Can you also provide more details such as what browser and operating systems you have tested? -> I was run by Chrome, MS EGD on Windows system + Chrome mobile. But same result.
Can you check the browser's network tab to see if there is a failing request to onesignal.com? -> Request find, test send a message stil work. Consol no error.
Is a user and subscription being created on the OneSignal dashboard after accepting notification permission? -> --- My bad ---- -> This still created a new user,
Docs are very deprecated and unsupported, I am moving to Firebase
How can we help?
I have a script which save UserId into Cookie like this. Its worked perfectly. But now OneSignal.getUserId doesn't work anymore. I trie some way and got nothing.
Please help me !
Thank a lot !!