Safari cannot open the page because address is invalid
Hi,
I can't get rid of this error :( I do not know what I do bad... Let me show you my config:
In the XCode, I have:
- URL Type:
- Identifier: com.test.ios - URL Scheme: com.googleusercontent... (the iOS Scheme from API google console)
So on my app I have:
google: { callback_url: 'com.test.ios:/com.googleusercontent...', client_id: <client id from API Google as well (not the scheme)>, }
And I got the same error over and over again and not sure why I dont have it ! I followed the instructions..
Any idea?
Your callback_url looks incorrect. The scheme (the initial part of the URL before the : character) should match to the URLScheme in your Info.plist.
The com.test.ios identifier is just a unique name for your application, not a part of the URL scheme.
Typically, a google redirect URI would look something like this:
com.googleusercontent.apps.GOOGLE_OAUTH_APP_GUID:/oauth2redirect/google