-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: External user id is not set for android #1565
Comments
UPDATE: adding the alias with key
but getting an issue.
|
Hi @Chasty, Thank you for reporting. Can you share more logs from when you call
The 409 "user-2" error you see for Aliases are unique user identifiers and should not be freely moved from one user to another. You can use the View User API to see details about the user that has the In the SDK, if you are trying to login to an external_id, you should be using the |
@nan-li adding this so the second issue may be expected, but I did not use aliases before, and I'm not concerned about this issue right now because our app is working as expected. I could reproduce this with an app from scratch. I'll make sure to add logs shortly. UPDATE: I think the second issue should not happen because I'm adding that external_id alias like this |
@nan-li here are the logs after
|
Same issue there, I had to set |
@FazilMuhammed external ID is the |
@nan-li i am also getting this issue when upgrading to the newest onesignal library
Login is failing and user user doesn't have an external id because of this failure |
I've the same issue for Android sdk, is there any one solved the issue? |
I have tried this but still not able to set external id. below is my code
@Chasty Could you please help? |
Have you found a solution for this? I've the same issue. |
@Juanli07 I have to downgrade the version to 4.8.6 and it is working well! |
@MohammedShehata could you shared to me the library initialization with that version? thanks! |
@MohammedShehata I tried to install and says Couldn't find any versions for "react-native-onesignal" that matches "4.8.6" |
I have the same issue in iOS and Android, and it works fine in version // How it works with 4.5.2
OneSignal.setEmail(email, null);
OneSignal.setExternalUserId(_id, identityHash, results => {
console.log(results);
}); |
any updates here? |
please resolve it |
Please help me, I am getting the same bug on the IOS external id field still empty, OneSignal.login("id_test_01") not working on Unity with OneSignal 5.0.5 SDK. |
@minhit1805 in my case, I've apps in iOS and android, and in both cases I had to downgrade the SDK version. |
Same here. OneSignal.login(pushId) does not put an external_id value which i can check through onesignal dashboard. |
Someone has been able to fix this? |
@programmerxx89 I faced this issue but in the native side, I tried to downgrade the version of one signal and it is working now! |
i solved the issue by downgrading to onesignal 4.5.2 |
We're facing the same problem after upgrading to v5. This is the official OneSignal SDK for React Native, isn't it? I'm really disappointed. 😒 |
It might not work if OneSignal is not fully initialized when the login function is called. What I have done to overcome this challenge is that I initialized I hope this helps someone Edit: In addition, |
Well if u pushing just id in string example OneSignal.login("1") or OneSignal.login("5") it won't work. Just add OneSignal.login("user-id-${userId}") it fixed that issue for me. Also in settings/keys_and_ids on OneSignal web i've changed: |
I got the same issue in OneSignal latest version (5.1.3) in Flutter. The OneSignal.login("External_Id") is not setting ID and in the dashboard, it shows that the external ID has not been set for a particular user, in my case the external ID is for one user, but this user has more than one devices. Any Updates on this issue? |
We having the same issue here (5.1.0) on Android. |
Is this permanent solution or temporary one? |
This happens randomly on iOS too. We are able to get subscription ID and save it in our logs but calling OneSignal.User.login does not save the externalID in dashboard. We use latest Flutter SDK. |
Also experiencing random cases of a subscription having no external id at all in my React Native app (both for Android and iOS). Hoping to try some of the suggested workarounds here; but that will have to wait in my case. |
Same here, external id is being set or not set randomly. |
The same problem here, the external id is not set when logging in ios and android. |
It is a pitty they do not investigate this further. We wrote several cases
to technical support with explicit ID's to investigate in their logs. We
decided to look for other similar platforms as alternatives as we have
several clients affected by this anomalies.
În joi, 20 iun. 2024 la 05:00 Arthur BL ***@***.***> a scris:
… The same problem here, the external id is not set when logging in ios and
android.
—
Reply to this email directly, view it on GitHub
<#1565 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAJSJGJ5JGQQLEKHYX4RXTZIIZTHAVCNFSM6AAAAAA5AHOXRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGY3TQNRSG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
We came across this problem with the external ids being null. Our workaround is using the OneSignal IDs instead. OneSignal is changing their user model to use the OneSignal IDs. These ids appear to be consistent upon situations when the app installs/loads or when users change devices. Instead of using the external_id in your notification code use the onesignal_id for your alias, which seems more consistent and reliable. |
@budostylz hi bro, can you share please how can I get the one signal_id? im getting null |
|
Just keep your version before v5. OneSignal.login() is much worse than OneSignal.setExternalUserId(). |
OneSignal proved to be unreliable. We switched to Firebase Messaging which is free and more reliable than OneSignal. The only caveat is creating your own analytics. |
it was ok until this happened, not sure why they are not able to track this
down, we offered detailed logs and phonenumbers...
we moved to airship
…On Fri, Jul 19, 2024 at 1:23 PM Shaun Lewis ***@***.***> wrote:
OneSignal proved to be unreliable. We switched to Firebase Messaging which
is free and more reliable than one signal. The only caveat is creating your
own analytics.
—
Reply to this email directly, view it on GitHub
<#1565 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAJSJF76I43DB2CT3OXZP3ZNDSJBAVCNFSM6AAAAAA5AHOXRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZYHA2DSMZRHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi everyone, if you are still having issues, please contact [email protected] and reference this github ticket and include your OneSignal App ID and the External ID with this issue. Ask for Jon, I can assist in looking into it with you. |
Same problem here with v5! |
+1 |
ios has this problem too |
"react-native-onesignal": "^5.2.2", |
any solution yet? |
Hi everyone, this issue should be resolved if you upgrade to our latest SDK. Unfortunately when this issue was first created the SDK had some issues... but now it is much more stable. Again, if you are still having issues after updating to the latest version of the SDK, please get a log while reproducing the issue following this guide: https://documentation.onesignal.com/docs/capturing-a-debug-log Then share it with our Support team at [email protected] We would be happy to take a look and assist you directly. |
Upgrading to latest version fixed this issue for me |
Please see @jfishman1's notes above. Since the logs shared with us are now outdated, I am closing this issue. Please open a new issue with clear details, or reach out to our Support team at [email protected]. |
What happened?
I'm using the new method
OneSignal.login(externalId)
in"react-native-onesignal": "5.0.0"
and docs saysso, for ios, it is working fine, but for Android, it is not.
Steps to reproduce?
What did you expect to happen?
Tags are correctly setup, but
externalId
is not created or linked after using the login method.I will attach an image where the external Id is not present, even after login. also, in log cat for android, i can confirm I'm sending the externalId.
React Native OneSignal SDK version
5.0.0
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: