Closed Ahmed-Imam closed 3 years ago
@rgomezp I believe this issue has been addressed in the release v2.16.4 based on this comment but the latest react-native-onesignal release that depends on v2 of ios sdk which is v3.9.3 is using v2.16.1. will v3.9.3 work fine with v2.16.4 if we will just patch the version in podspec to v2.16.4 ? Thanks
@jkasten2 @Jeasmine any thoughts on this ? thanks
we have the same crash.
cache log
Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x19a0af298 exceptionPreprocess 1 libobjc.A.dylib 0x1ade09480 objc_exception_throw 2 CoreFoundation 0x19a11aaf4 -[NSCFString characterAtIndex:].cold.1 3 CoreFoundation 0x19a07a774 _CFPrefsValidateValueForKey 4 CoreFoundation 0x19a07ae14 createDeepCopyOfValueForKey 5 CoreFoundation 0x19a07ab24 -[CFPrefsSource setValues:forKeys:count:copyValues:removeValuesForKeys:count:from:] 6 CoreFoundation 0x19a07af34 -[CFPrefsSource setValues:forKeys:count:copyValues:from:] 7 CoreFoundation 0x199f9a0f8 -[CFPrefsSource setValue:forKey:from:] 8 CoreFoundation 0x19a107084 76-[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:]_block_invoke 9 CoreFoundation 0x19a0cbbd4 108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke 10 CoreFoundation 0x19a0cb2c0 normalizeQuintuplet 11 CoreFoundation 0x19a0cba48 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] 12 CoreFoundation 0x199f99bac -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] 13 CoreFoundation 0x19a10a57c _CFPreferencesSetAppValueWithContainerAndConfiguration 14 Foundation 0x19b2bb55c -[NSUserDefaults(NSUserDefaults) setObject:forKey:] 15 Lit Live 0x1004b5dbc -[OneSignalUserDefaults saveDictionaryForKey:withValue:] 16 Lit Live 0x1004818a4 -[OSMessagingController deleteOldRedisplayedInAppMessages] 17 Lit Live 0x100499c78 +[OneSignal receivedInAppMessageJson:] 18 Lit Live 0x10049971c 33+[OneSignal registerUserInternal]_block_invoke 19 libdispatch.dylib 0x199ce62b0 _dispatch_call_block_and_release 20 libdispatch.dylib 0x199ce7298 _dispatch_client_callout 21 libdispatch.dylib 0x199cc9430 _dispatch_main_queue_callback_4CF$VARIANT$armv81 22 CoreFoundation 0x19a02e2e0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE 23 CoreFoundation 0x19a028740 CFRunLoopRun 24 CoreFoundation 0x19a027818 CFRunLoopRunSpecific 25 GraphicsServices 0x1b072d570 GSEventRunModal 26 UIKitCore 0x19c9530e8 -[UIApplication _run] 27 UIKitCore 0x19c958664 UIApplicationMain 28 Lit Live 0x1001c0bc0 main + 14 (AppDelegate.swift:14) 29 libdyld.dylib 0x199d06140 start
@spirit-jsb I am not sure if its the same issue as ours, but if it is, the issue was fixed on v2.16.4 ios SDK, if you are in react native, u should use react-native-onesignal-v3.9.3 and do patching on node_module/react-native-onesignal-v3.9.3 to use v2.16.4 instead of v2.16.1.
u can also use react-native-onesignal v3.9.4 since it has been released already and its uses iOS sdk 2.16.5.
It sounds like this issue is safe to close. Is there anything else?
Description: App crashes on some devices upon updating.
Environment react-native: v0.63.4 react-native-onesignal : v3.8.0 oneSignal SDK: v2.14.3 ios: v14.4.2
Steps to Reproduce Issue: Replicated on production only
Crash logs