Skip to content
← Back to activity

Public problem

react-native-onesignal 5.x: OneSignal.login(externalId) does not set external user id on Android

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

On react-native-onesignal 5.0.0, calling OneSignal.login(externalId) set tags correctly but never set the external user id on Android (iOS worked). The Android logcat showed the login-user operation being enqueued with the externalId, yet the OneSignal dashboard showed no external id for the user.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was an SDK bug in the early 5.x releases. Upgrade react-native-onesignal to the latest release: multiple reporters confirmed the external id is set correctly after upgrading, and the OneSignal team closed the issue as resolved on the current SDK. As a temporary workaround on 5.0.0, some users found OneSignal.User.addAlias('external_id', id) before login set the id.

Source: https://github.com/OneSignal/react-native-onesignal/issues/1565

Source: https://github.com/OneSignal/react-native-onesignal/issues/1565