OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.56k stars 373 forks source link

_OBJC_CLASS_$_WKWebViewConfiguration #861

Closed andiskim closed 4 years ago

andiskim commented 4 years ago

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:

"_OBJCCLASS$_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!

rgomezp commented 4 years ago

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

sunnyarain commented 4 years ago

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

onesignal
andiskim commented 4 years ago

@sunnyarain Worked! Thank you!

coderdave commented 4 years ago

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. :(

rgomezp commented 4 years ago

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

coderdave commented 4 years ago

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

rgomezp commented 4 years ago

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

cinder92 commented 4 years ago

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

rgomezp commented 4 years ago

@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

77TecShaeer commented 3 years ago

+++