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

[Bug]: react native setExternalUserId app crashes #1520

Closed
2 of 3 tasks
sekizlipenguen opened this issue Jun 1, 2023 · 2 comments
Closed
2 of 3 tasks

[Bug]: react native setExternalUserId app crashes #1520

sekizlipenguen opened this issue Jun 1, 2023 · 2 comments

Comments

@sekizlipenguen
Copy link

sekizlipenguen commented Jun 1, 2023

What happened?

hi,
When I compile and open the application, it closes automatically.

I realized that the source of the problem is the following function.

react native setExternalUserId

<SKPaymentQueue: 0x600002414ec0>: No observers found that respond to "paymentQueue:shouldAddStorePayment:forProduct:", will not check for purchase intents

Steps to reproduce?

react native setExternalUserId 

<SKPaymentQueue: 0x600002414ec0>: No observers found that respond to "paymentQueue:shouldAddStorePayment:forProduct:", will not check for purchase intents

-[__NSCFString characterAtIndex:].cold.1
NSRangeException - *** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]

 "react-native-onesignal": "4.5.1",

xcode 14.3 crashes
xcode 12.4 it works when compiled with this version

What did you expect to happen?

urgent solution needed

React Native OneSignal SDK version

4.5.1

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

-[__NSCFString characterAtIndex:].cold.1
NSRangeException - *** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented Jun 2, 2023

Hi @sekizlipenguen,

Thanks for reporting an issue, but there is not enough information to understand what is happening. This is not from react-native-onesignal:

<SKPaymentQueue: 0x600002414ec0>: No observers found that respond to "paymentQueue:shouldAddStorePayment:forProduct:", will not check for purchase intents

Please turn on verbose logging with OneSignal.setLogLevel(6, 0) and give the full log starting from when you call OneSignal.setExternalUserId("SOME_USER_ID").

@jennantilla
Copy link
Contributor

Closing due to no response.

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

No branches or pull requests

3 participants