-
Notifications
You must be signed in to change notification settings - Fork 145
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
logout method causing app crash #95
Comments
@rklus16 , Some I can't produce the issue you've reported. |
Cordova version: 6.1.1 We have it setup that when a user logs into our system a user id is returned which we use for setIdentity method like so.
Once the user logs out we call the logout method.
|
Works for android. For iOS, I'm using Xcode Version 7.3 (7D175). I don't know if that would be an issue though. |
I think I've figured out the issue. I was passing in the id as a json object. I thought on callback it was already stringified but I guess not. JSON.stringify seems to have fixed the issue. |
In iOS, after setting the user identity successfully, then I try to log the user out the app crashes and I get this log in the console.
xcode also displays this line in [BNCPreferenceHelper setUserIdentity:] as the issue.
The text was updated successfully, but these errors were encountered: