iOS Rejection due to Google SignIn. Latest Google

2019-07-14 00:32发布

问题:

our app got rejected by apple for

Design - 4.0

We noticed that the user is taken to Safari to sign in or register for an account when logging in with Google+, which provides a poor user experience.

Next Steps

Please revise your app to enable users to sign in with Google+ in the app. You can do this by updating to the latest Google+ SDK.

We recommend implementing the Safari View Controller API to display web content within your app. The Safari View Controller allows the display of a URL and inspection of the certificate from an embedded browser in an app so that customers can verify the webpage URL and SSL certificate to confirm they are entering their sign in credentials into a legitimate page.

I am using pod and have the latest Google SignIn library, not a GooglePlus one. The library 4.0.0 (15/05/2016), says on release notes

https://developers.google.com/identity/sign-in/ios/release

Removes allowsSignInWithBrowser and allowsSignInWithWebView properties from GIDSignIn.

That means that I don't have a way to force it on iOS 8 to have the default iOS 9 behavior (Open a safari like browser within the app). Having installed Google App or Google+ App makes no difference.

Tried to downgrade to 2.4.0 using cocoa pods but it says

Analyzing dependencies [!] Unable to satisfy the following requirements:

  • Google/SignIn (= 2.4.0) required by Podfile
  • Google/SignIn (= 2.4.0) required by Podfile

Any ideas?

Thanks in advance

回答1:

Finally I managed to make changes and get it aprooved by downgrading to GoogleSignIn 3.0.0 which has allowsSignInWithBrowser and allowsSignInWithWebView properties Which I make use of with

allowsSignInWithBrowser = NO
allowsSignInWithWebView = YES

Had to change the pod file to this in order to make everything build (having google analytics too made the thing so much difficult, cause of dependecies).

Hope Google Engineers update the SignIn 4.0.0, because I don't like having old libraries, but I can't have my app rejected until Google Changes the libs

pod 'Google/Analytics'

pod 'GoogleSignIn', '3.0.0'
pod 'Google/SignIn'
pod 'Google', '2.0.4'
pod 'GoogleAppUtilities'
pod 'GoogleAuthUtilities'
pod 'GoogleNetworkingUtilities'

Good luck to you guys too, Thanks Paulw11, he made a test project and saw the same problem in iOS8. also, telling reviewers that other (even big) apps in App Store are usign webview even if iOS9, not only iOS8, did not help, because they said this cannot be a reason for other apps to be, and they are working hard to reject other too.

If Any changes made, for example a new GoogleSignIn library, please make a new answer!