OneSignal-iOS-SDK icon indicating copy to clipboard operation
OneSignal-iOS-SDK copied to clipboard

iOS16 beta :: warning This method can cause UI unresponsiveness if invoked on the main thread.

Open dklt opened this issue 2 years ago • 8 comments

maybe already reported, dunno...

XCode 14b4 build generates this warning, call-stack suggests invoked by oneSignal iOS SDK 3.11.2:

Environment

  1. SDK 3.11.2
  2. XCode 14b4 on iOS16b
  3. via cocoapods

Steps to Reproduce Issue:

  1. Build project, XCode 14b4 generate a warning in purple (see to attach img)
  2. Run App, after OneSignal SDK initialize success, purple warning icon appear

Anything else:


(edit: add run app step)

dklt avatar Aug 02 '22 10:08 dklt

@dklt Thanks for reporting, we will look into addressing this in the future.

jkasten2 avatar Aug 02 '22 18:08 jkasten2

Any solutions on this? Having the same issues and none of my apps work anymore under iOS 16

JuFa512 avatar Aug 25 '22 11:08 JuFa512

@jkasten2 we reached iOS 16 RC and Xcode 14 RC, when will this be fixed?

rursache avatar Sep 08 '22 08:09 rursache

Also experiencing this on the Xcode 14 public release

JUSTINMKAUFMAN avatar Sep 14 '22 02:09 JUSTINMKAUFMAN

I get this warning but it seems there are no issues with my app(s).

sabiland avatar Sep 15 '22 09:09 sabiland

I have same warning

EDIT: This way is works for me

Add this code: OneSignal.setLocationShared(false) before OneSignal.initWithLaunchOptions(launchOptions)

yunustek avatar Sep 15 '22 13:09 yunustek

Is this solution ok to use?

sabiland avatar Sep 16 '22 05:09 sabiland

+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?

cal-os avatar Sep 16 '22 17:09 cal-os

+1 for getting this fixed, as it's still present in the Xcode 14.1 betas

dlewandaDK avatar Oct 12 '22 17:10 dlewandaDK

I have same warning

EDIT: This way is works for me

Add this code: OneSignal.setLocationShared(false) before OneSignal.initWithLaunchOptions(launchOptions)

worked for me, nice catch

mehmetdelikaya avatar Nov 16 '22 15:11 mehmetdelikaya