Comments (4)
Anyone figured how to fix this?
from react-native-onesignal.
Anyone figured how to fix this?
@JovanMwesigwa Yes.. Turn off this
https://documentation.onesignal.com/docs/identity-verification
from react-native-onesignal.
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)
- Closed
- [Bug]: opted in state stops updating on Android after app restarted HOT 6
- [question]: App stopped due to OneSignal?.Notifications?.requestPermission(true); HOT 2
- [Bug]: `getInAppMessages` causing `initWithContext` exception HOT 1
- [Bug]: Doesn't return to the app (crashes) if user rejects notification permission HOT 2
- [Bug]: App crashes on initialization HOT 3
- [question]: React native oneSignal HOT 2
- [question]: OneSignal.User.pushSubscription.getPushSubscriptionId() does not work HOT 3
- [Bug]: Param `launchURL` differs between iOS and Android implementation HOT 1
- [question]: Handling the Dismiss event HOT 1
- [Bug]: App crashes on subsequent open on Android HOT 4
- OneSignal.Notifications.hasPermission() is returning false always [Bug]: HOT 31
- how add action button ios to payload onesignal json apns file in simultor? HOT 1
- await OneSignal.Notifications.requestPermission(true) doesn’t execute [question]:
- [Bug]: In-App Messages crash Android devices (fine on iOS) - NullPointerException on HashMap.keySet() HOT 1
- [question]: OnesignalNotificationServiceExtension Build Error HOT 3
- [question]: Changing the Language of Android System Modal Text in the requestPermission Callback Function HOT 3
- [Bug]: RNOneSignal.requestNotificationPermission Crash HOT 3
- [question]: Handle notification click when app is not in foreground/open ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-onesignal.