OneSignal-iOS-SDK
OneSignal-iOS-SDK copied to clipboard
iOS16 beta :: warning This method can cause UI unresponsiveness if invoked on the main thread.
maybe already reported, dunno...
XCode 14b4 build generates this warning, call-stack suggests invoked by oneSignal iOS SDK 3.11.2:
Environment
- SDK 3.11.2
- XCode 14b4 on iOS16b
- via cocoapods
Steps to Reproduce Issue:
- Build project, XCode 14b4 generate a warning in purple (see to attach img)
- Run App, after OneSignal SDK initialize success, purple warning icon appear
Anything else:
(edit: add run app step)
@dklt Thanks for reporting, we will look into addressing this in the future.
Any solutions on this? Having the same issues and none of my apps work anymore under iOS 16
@jkasten2 we reached iOS 16 RC and Xcode 14 RC, when will this be fixed?
Also experiencing this on the Xcode 14 public release
I get this warning but it seems there are no issues with my app(s).
I have same warning
EDIT: This way is works for me
Add this code:
OneSignal.setLocationShared(false)
before
OneSignal.initWithLaunchOptions(launchOptions)
Is this solution ok to use?
+1, the XC14 release build has been out already for a few days. @jkasten2 is there any update on whether or not this will be addressed?
+1 for getting this fixed, as it's still present in the Xcode 14.1 betas
I have same warning
EDIT: This way is works for me
Add this code:
OneSignal.setLocationShared(false)
beforeOneSignal.initWithLaunchOptions(launchOptions)
worked for me, nice catch