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 byPodfile
Google/SignIn (= 2.4.0)
required byPodfile
Any ideas?
Thanks in advance