GithubHelp home page GithubHelp logo

Comments (4)

JovanMwesigwa avatar JovanMwesigwa commented on June 9, 2024

Anyone figured how to fix this?

from react-native-onesignal.

SohelIslamImran avatar SohelIslamImran commented on June 9, 2024

Anyone figured how to fix this?

@JovanMwesigwa Yes.. Turn off this
image

https://documentation.onesignal.com/docs/identity-verification

from react-native-onesignal.

thomaskyr avatar thomaskyr commented on June 9, 2024

Hello,
using version "react-native-onesignal": "^5.0.6" I have the same issue using Onesignal.login(externalId) with the external id being something like:
R3Fpo3v+cAmelVpSxv5Y82tLY1JTJIZ250jXvGZbaEqjzL4fDEWHG9JT9fwfCnANxpxpAuCd9gmqKUXWj+DFGF==

In some cases I see that the user gets logged in (but even in these cases, the OneSignal.User.addTag method doesn't work). In most of the attempts though, the user doesn't get logged in.

Relevant Log:
VERBOSE: network response (OneSignalUser.OSRequestIdentifyUser): { errors = ( { code = "user-2"; meta = { "external_id" = "R3Fpo3v+cAmelVpSxv5Y82tLY1JTJIZ250jXvGZbaEqjzL4fDEWHG9JT9fwfCnANxpxpAuCd9gmqKUXWj+DFGF=="; }; title = "One or more Aliases claimed by another User"; } ); httpStatusCode = 409; }

VERBOSE: executeIdentifyUserRequest failed with error Optional(Error Domain=OneSignalError Code=409 "(null)" UserInfo={returned={ errors = ( { code = "user-2"; meta = { "external_id" = "R3Fpo3v+cAmelVpSxv5Y82tLY1JTJIZ250jXvGZbaEqjzL4fDEWHG9JT9fwfCnANxpxpAuCd9gmqKUXWj+DFGF=="; }; title = "One or more Aliases claimed by another User"; } ); httpStatusCode = 409; }})

DEBUG: executeIdentifyUserRequest returned error code user-2. Now handling user-2 error response... switch to this user. VERBOSE: network response (OneSignalUser.OSRequestFetchUser): { errors = ( { title = "Given alias (external_id: R3Fpo3v+cAmelVpSxv5Y82tLY1JTJIZ250jXvGZbaEqjzL4fDEWHG9JT9fwfCnANxpxpAuCd9gmqKUXWj+DFGF==) doesn't match an existing user"; } ); httpStatusCode = 404; }

ERROR: OSUserExecutor executeFetchUserRequest failed with error: Optional(Error Domain=OneSignalError Code=404 "(null)" UserInfo={returned={ errors = ( { title = "Given alias (external_id: R3Fpo3v+cAmelVpSxv5Y82tLY1JTJIZ250jXvGZbaEqjzL4fDEWHG9JT9fwfCnANxpxpAuCd9gmqKUXWj+DFGF==) doesn't match an existing user"; } ); httpStatusCode = 404; }})

VERBOSE: OSOperationRepo enqueueDelta: OSDelta OS_UPDATE_SUBSCRIPTION_DELTA with property: subscriptionId value: nil

As far as I understand, It seems like it confuses the external id with an alias.
If I change the external id to something like "abcdefg12345" it works fine. What could the issue be? The special characters? The length of the external id? In that case, why does the user get logged in randomly? And why does it work fine on Android?

from react-native-onesignal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.