Firebaseui-ios: ITMS-90809: Deprecated API Usage - FirebaseUI/Google

Created on 12 Sep 2019  路  20Comments  路  Source: firebase/FirebaseUI-iOS

Hi,

The latest FirebaseUI/Google (8.0.4) is using GoogleSignIn 4.4.0 (and not 5.0.0) and is not compliant anymore with the new Apple policies because of use of UIWebView API.

When trying to submit the app to Apple on AppConnect, they drop a no go warning message, preventing from being reviewed successfully :

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

Steps to reproduce :

$ pod install
Installing FirebaseUI 8.0.4
Installing GoogleSignIn (4.4.0)
Installing GoogleToolboxForMac (2.2.1)

but when forcing GoogleSignIn to 5.0.0 with pod 'GoogleSignIn', '5.0.0'

$ pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "GoogleSignIn":
  In Podfile:
FirebaseUI/Google was resolved to 8.0.4, which depends on
      GoogleSignIn (~> 4.0)
GoogleSignIn (= 5.0.0)

then

$ grep -r "UIWeb" .
./Pods/GoogleSignIn/CHANGELOG.md:- Supports sign-in via UIWebView rather than app switching to a browser,
Binary file ./Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn matches

FirebaseUI/Google needs to be compatible with the latest release of GoogleSignIn 5.0.0 already available as a pod.

auth

Most helpful comment

Versions higher than GoogleSignIn 4.4.0 produce errors when building, version 4.4.0 works fine without any error, but the problem is that it uses UIWebView, I would like UIWebView of 4.4.0 replaced with WKWebView.

All 20 comments

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@renkelvin, iirc there aren't any code changes necessary, I just need to bump the dependency version in CocoaPods. Can you confirm?

@renkelvin, iirc there aren't any code changes necessary, I just need to bump the dependency version in CocoaPods. Can you confirm?

If FirebaseUI/Google code base is compatible with GoogleSignIn 5.0.0, then yes it is just a dependency bump in CocoaPods

I'll take care of this today. Thanks for reporting!

Have you got a chance to look at it, is the dependency bump worked or it needs more integration work?
Thanks

I'm also wondering about the state of this issue since the dependancy is not bumped to 5.0.0 yet.

Apologies for the delay, this has been released. Please update your FirebaseUI version and let me know if this is still an issue.

Installing FirebaseUI with CocoaPods, I still have GoogleSignIn version 4.4.0 instead of 5.0.0. Does anyone have the same issue?

And If I run the following command in the terminal:
grep -r "UIWeb" . | grep Binary

I got this answer:
Binary file ./Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn matches

Apple will not accept my app with the UIWebView API.

I updated to FirebaseUI 8.1.0 and GoogleSignIn got updated to 5.0.0 as well. The grep match for UIWebView in GoogleSignIn has disappeared.

Make sure you use pod update and not pod install if you did that @sanchofox

Ok, thank you! Solved!

Thanks it is solved

./Pods/GoogleSignIn/CHANGELOG.md:- Supports sign-in via UIWebView rather than app switching to a browser, when grape UIWebView

Using GoogleSignIn 5.0.0

I'm using:
pod 'GoogleSignIn'
I tried to use the following line
pod 'GoogleSignIn', '~> 5.0.0'
Terminal output:
[!] CocoaPods could not find compatible versions for pod "GoogleSignIn": In Podfile: GoogleSignIn (~> 5.0.0)

What should I do?

Run pod repo update.

GoogleSignIn is still using AppAuth, which includes UIWebView. When would this be resolved?

Appstore is keep giving warning after uploading App to Appstore -

Dear Developer,

We identified one or more issues with a recent delivery for your app, "XXXX. Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90809: Deprecated API Usage - Apple will no longer accept submissions of new apps that use UIWebView as of April 30, 2020 and app updates that use UIWebView as of December 2020. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

After you鈥檝e corrected the issues, you can upload a new binary to App Store Connect.

Versions higher than GoogleSignIn 4.4.0 produce errors when building, version 4.4.0 works fine without any error, but the problem is that it uses UIWebView, I would like UIWebView of 4.4.0 replaced with WKWebView.

Versions higher than GoogleSignIn 4.4.0 produce errors when building, version 4.4.0 works fine without any error, but the problem is that it uses UIWebView, I would like UIWebView of 4.4.0 replaced with WKWebView.

Same here, some update?

AppAuth references UIWebView in a header comment only; you can either appeal your app rejection to Apple or you can remove the header comment manually and resubmit.

See this issue: https://github.com/openid/AppAuth-iOS/issues/449

5.0.2 is available, just update your Podfile to pod 'GoogleSignIn', '5.0.2'
and run $ pod install

Here is how to migrate from 4.x: https://developers.google.com/identity/sign-in/ios/quick-migration-guide

Was this page helpful?
0 / 5 - 0 ratings