Accepting google sign in popup

App is integrated with google native sign in. After successful authentication , sign in should redirect to app. But google always ask popup alert message " Open this page in “xxx” " which times out in 2 seconds.
How to solve this problem in automation using appium ? Accepting system alerts command were not helpful
autoAcceptAlerts = true

capabilities.SetCapability(“autoAcceptAlerts”, true);

But that is an iOS only capability.

http://appium.io/slate/en/master/?java#ios-only

I believe you’ll need to handle the alert programmatically.

Thanks for the reply but as said using capabilities.SetCapability(“autoAcceptAlerts”, true); were not helpful

After integrated with google native sign in, I am unable to select the user from the list. It throws exceptions of not getting the locators.
Would you please help me out.

Thanks
Ajitabh