React-native-onesignal: _OBJC_CLASS_$_WKWebViewConfiguration

Created on 18 Sep 2019  ·  10Comments  ·  Source: OneSignal/react-native-onesignal

Description:
I was previously using react-native-onesignal 3.2.12 which worked fine, of which I followed the steps in the setup documentation. However, libOnesignal.a used UIWebkit so I had to upgrade. I am getting an error:

"_OBJC_CLASS_$_WKWebViewConfiguration"

Environment

  1. react-native 0.57.4
  2. react-native-onesignal 3.4.1
  3. yarn add react-native-onesignal

Steps to Reproduce Issue:

  1. Install OneSignal SDK using yarn
  2. Run build

Anything else:

image

Adding Webkit.framework:
image

Resulting error from that:
image

Thanks for your help!

Most helpful comment

was facing the same issue and i resolved it by adding CoreGraphics.framework to OneSignalNotificationServiceExtension
onesignal

All 10 comments

Can you please run pod deintegrate && pod install from your ios folder?

was facing the same issue and i resolved it by adding CoreGraphics.framework to OneSignalNotificationServiceExtension
onesignal

@sunnyarain Worked! Thank you!

wow, this issue should have stayed open until the documentation is updated! I was previously using 3.3.2 and upgraded to 3.4.1 because iOS 13 notifications stopped working. After a few hours, I stumbled on this issue and to my surprise I had to add CoreGraphics.framework AND WebKit.framework. :(

I'll reopen because those frameworks should be getting added automatically

When you link it? I'm talking about the documentation here: https://documentation.onesignal.com/docs/react-native-sdk-setup-continued-without-cocoapods

@coderdave ,
Thanks for pointing that out. I went ahead and updated those docs for manual linking (no cocoapods)

after done that @sunnyarain suggested im getting the following errors, for iOS 13

Captura de Pantalla 2019-10-02 a la(s) 12 14 50

@cinder92 ,
It looks like your project is not using the latest version of the iOS SDK framework.
If you're using cocoapods, go into your ios directory and run pod deintegrate && pod install.

If that doesn't work, follow this guide: https://documentation.onesignal.com/docs/react-native-sdk-setup#section-manually-updating-ios-onesignalnativesdk

+++

Was this page helpful?
0 / 5 - 0 ratings