react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

[Bug]: react native setExternalUserId app crashes

Open sekizlipenguen opened this issue 1 year ago • 1 comments

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?

  • [X] iOS
  • [ ] Android

Relevant log output

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

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

sekizlipenguen avatar Jun 01 '23 12:06 sekizlipenguen

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").

nan-li avatar Jun 02 '23 20:06 nan-li

Closing due to no response.

jennantilla avatar Apr 23 '24 19:04 jennantilla