Skip to content
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

Ios Player id issue #673

Closed
davekedar opened this issue Nov 15, 2018 · 2 comments
Closed

Ios Player id issue #673

davekedar opened this issue Nov 15, 2018 · 2 comments

Comments

@davekedar
Copy link

Description:
I am trying to get playerid for Onesignal, while doing that it is working strangely.
onIds = async (device) => { console.log("Device info: ", device.userId); let playerid = device.userId; AsyncStorage.setItem('playerid', playerid); //this.setState({device_id: playerid}) alert(playerid); }

the above code gives me this error, but in alert i am getting the player id. check the picture attached.
image

** Purpose: **
I want to save the playerid in a state or Asyncstorage so that I can send that in Signin api response. but it is not happening.

Environment
"react-native-onesignal": "^3.2.8", "react": "16.6.0-alpha.8af6728", "react-native": "^0.57.5",

@Nightsd01
Copy link
Contributor

@davekedar I don't believe this is an issue with our SDK as I don't see OneSignal mentioned in that stack trace, and it looks like the event is firing correctly.

@davekedar
Copy link
Author

@Nightsd01 I understand your comment but it is only when I am enabling one signal, closing this will not be a solution there may be someone else who has faced this and solved it, they can help.

I just need to know how we can get playerid from ios to store in server that's it.

Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants