Skip to content
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 Id is not getting set #1693

Open
2 of 3 tasks
AbdulBasit-Kagzi opened this issue Apr 17, 2024 · 1 comment
Open
2 of 3 tasks

[Bug]: External Id is not getting set #1693

AbdulBasit-Kagzi opened this issue Apr 17, 2024 · 1 comment

Comments

@AbdulBasit-Kagzi
Copy link

AbdulBasit-Kagzi commented Apr 17, 2024

What happened?

When I use OneSignal.login(${deviceId}) external Id not getting set on onesignal dashboard.

Steps to reproduce?

Install version "^5.0.6"
on homeScreen 

  useEffect(() => {
    if (!deviceId) {
      (async function () {
        // OneSignal.logout();
        const token = await DeviceInfo.getUniqueId();
        setDeviceId(token);
      })();
    } else {
      console.log('deviceIdElse', deviceId);
      OneSignal.User.addAlias('external_id', `${deviceId}`);
      OneSignal.login(`${deviceId}`);
    }
  }, [deviceId]);

What did you expect to happen?

External Id should get set and should be visible on onesignal dashboard.

React Native OneSignal SDK version

5.1.2

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
@jennantilla
Copy link
Contributor

Hello @AbdulBasit-Kagzi thanks for reaching out! Could you please provide the logs from your device so we can take a deeper look at what's going on? Appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants