OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 215 forks source link

[Bug]:user id and email not save on onesignal dashboard. #821

Closed vipul8815 closed 10 months ago

vipul8815 commented 10 months ago

What happened?

We call the login function and pass the user id but the dashboard does not show the external user ID and also the same thing for set email.

Steps to reproduce?

we call functions after the user logins 
check attached functions 
 Future<void> setUserId(String userId) async {
    await OneSignal.login(userId);
    await OneSignal.User.addAlias("user_id", userId);
  }

  void setEmailId(String email) {
    OneSignal.User.addEmail(email);
  }

What did you expect to happen?

we need to save email and external user id

OneSignal Flutter SDK version

flutter version 3.16.4 package version 5.0.4

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

nan-li commented 10 months ago

Hi @vipul8815,

Thank you for reporting this issue.

Can you share your logs when you call your method setUserId(String userId) and your method setEmailId(String email)?

vipul8815 commented 10 months ago

now working

nan-li commented 10 months ago

Hi @vipul8815,

That's good to hear. This may have been a server bug that has been fixed around attaching external_id after logging in. I'll close this issue, but please reach out if you encounter any problems again.