You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We set up SetExternalUid on the email call back. Now we are getting external uids attached to the email record, but not the push notification record. Is this expected behavior?
My expectation would be that if I call code as follows - then both the push notification player record and email notification player record would be tagged with the same external UID. It seems however that the setting it in the email handler unsets it in the push notification record.
Steps to reproduce?
OneSignal.setExternalUserId(uid);
if (email) {
OneSignal.setEmail(email, undefined, () => {
// Note: we have to set the onesignal euid again in the callback so
// the external user id is set correctly in the email record
// see: https://documentation.onesignal.com/docs/email-sdk-methods#setemail-method
OneSignal.setExternalUserId(uid);
});
}
What did you expect to happen?
I would expect both the email and push notification record to have the external UID associated.
However, when using the above code, only the EMAIL record now has the external UID
React Native OneSignal SDK version
4.4.1
Which platform(s) are affected?
iOS
Android
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
mljlynch
changed the title
[Bug]:
[Bug]: setExternalUserId sets only one record when called twice in a row.
May 4, 2023
Hi, we have had no further reports of this. Please upgrade the OneSignal SDK if you or anyone is still having this issue. If this is still an issue, please open a new report with updated information.
What happened?
We set up SetExternalUid on the email call back. Now we are getting external uids attached to the email record, but not the push notification record. Is this expected behavior?
My expectation would be that if I call code as follows - then both the push notification player record and email notification player record would be tagged with the same external UID. It seems however that the setting it in the email handler unsets it in the push notification record.
Steps to reproduce?
OneSignal.setExternalUserId(uid); if (email) { OneSignal.setEmail(email, undefined, () => { // Note: we have to set the onesignal euid again in the callback so // the external user id is set correctly in the email record // see: https://documentation.onesignal.com/docs/email-sdk-methods#setemail-method OneSignal.setExternalUserId(uid); }); }
What did you expect to happen?
I would expect both the email and push notification record to have the external UID associated.
However, when using the above code, only the EMAIL record now has the external UID
React Native OneSignal SDK version
4.4.1
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: