Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova app google OAuth2 invalid cookiePolicy

Case :
Develop a iOS/Android app with Cordova where you can login with a Google account using OAuth2.

Problem:
When launching the app on browser, localhost:3000 I can login with my google account like normal but when I try to launch my Cordova app with cordova run ios it crashes.

The error that Cordova is giving is:

enter image description here

Like I mentioned is that I use OAuth2, to login with your google account, the following settings I use in my app are:enter image description here

For some reason I think that there the problem is the oAuth2 link because the error that I'm having starts with gap.auth2

like image 530
Noah Telussa Avatar asked Oct 18 '22 22:10

Noah Telussa


1 Answers

In your phone , go to device's "Settings -> Safari -> Block Cookies". There the enabled setting should be either "Always allow" or "Allow websites I visit", for Google Sign In to work

like image 62
Chrome App Avatar answered Oct 21 '22 04:10

Chrome App