Google-signin: Apple deprecate UIWebView warning

Created on 13 Apr 2020  路  13Comments  路  Source: react-native-google-signin/google-signin

Steps to Reproduce

I am upgrade React Native 0.59.9 to 0.62.1, and using @react-native-community/google-signin: 4.0.0. When i upload ipa to testflight, i receive the warning Apple deprecate UIWebview warning, i search issue in here but nothing show up.

Expected Behavior

NOT receive the Apple Warning when upload ipa to testflight.

Actual Behavior

Receive the Apple Warning when upload ipa to testflight.

Environment

  • react-native 0.62.1
  • @react-native-community/google-signin: 4.0.0
  • cocoapods 1.8.4
  • output pod install:
    Detected React Native module pods for Picker, RNBraintreeDropIn, RNCAsyncStorage, RNDeviceInfo, RNFirebase, RNGestureHandler, RNI18n, RNLocalize, RNReanimated, RNSVG, RNSpringScrollView, ReactNativePermissions, appcenter-analytics, appcenter-core, appcenter-crashes, react-native-camera, react-native-config, react-native-fast-image, react-native-fbsdk, react-native-mail, react-native-maps, react-native-netinfo, react-native-orientation-locker, react-native-shake, react-native-splash-screen, react-native-webview, and tipsi-stripe
    Analyzing dependencies
    Downloading dependencies
    Generating Pods project
    Integrating client project

Please help me out. Thank you.

Most helpful comment

@vonovak i just working on remove the warning UIWebView, so i setting step by step all library from begin and test it with the test flight. And when i setup the google signin lib, the warning Apple will raise again, remove this lib, warning is gone. I upgrade from 0.59.9, maybe something i done wrong, but so far what i know is this warning come from there. Any help will be very appriciate, Thank you so much.

All 13 comments

hello, what version of https://cocoapods.org/pods/GoogleSignIn are you using?

@vonovak thank you for helping me, my google sigin version:
pod 'GoogleSignIn', '~> 5.0.2'

@ducpt2 thanks; why do you think the warning is caused by this library? I'm not 100% sure about this but I tend to think that pod 'GoogleSignIn', '~> 5.0.2' does not depend on UIWebView. Thanks.

this might be caused by using outdated react-native-webview (not sure what version you're using)

@vonovak i just working on remove the warning UIWebView, so i setting step by step all library from begin and test it with the test flight. And when i setup the google signin lib, the warning Apple will raise again, remove this lib, warning is gone. I upgrade from 0.59.9, maybe something i done wrong, but so far what i know is this warning come from there. Any help will be very appriciate, Thank you so much.

@ducpt2 okay, seems like google sign in indeed uses UIWebView. Either way, the trouble is not in this package but in google's implementation - we cannot do anything about it. I suggest you open an issue here https://github.com/googlesamples/google-services

Until google releases new google sign in pod that does not depend on UIWebView you have to live with the warning.
Because this is not actionable on our side, I'm closing this, thank you!

@vonovak Oh ok, i got it. Thank you for helping me, have a nice day vonavak :)

@ducpt2 how did you implement google login now?

@mohsinulhaq i remove google signin from my app right now and hoping they will fix this issue soon.

I am using Google Sign-In in my App and the app is getting rejected on App Store, received mail with following message

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability.

I used "grep -r UIWebView ." command in project Terminal and getting Google Sign-In related files using UIWebView.

@vonovak it was an issue with old version of this library, I upgraded the npm package to v4 and the pod to 5.0.2, and the app store submission was successful again. So I'm not really sure if it's a google issue.

Its google issue. Tried with Version 5.0.2 . If I grep inside pods folder, we see UIWebView usage.

Same issue for me (at npm module 4.03 and pod 5.02), Apple is warning.

Just downloaded Google Sign-in version 5.0.2. grep produces this -

grep -rnw . -e 'UIWebView'
./CHANGELOG.md:95:- Supports sign-in via UIWebView rather than app switching to a browser,
Binary file ./GoogleSignIn.framework/GoogleSignIn matches

Apple says it will stop accepting apps as of December 2020. Hoping a new version of Sign-in without the UIWebview dependency will be released prior to that.

Was this page helpful?
0 / 5 - 0 ratings