Goal: Complete Oauth2 from google in an iOS application.
I am using phonegap so I am launching the oauth in the browser. I want the redirect to be a custom url for my app so I can store the token. I have read this post on how to handle redirect but am still confused. What is the custom url that I should enter in my info.plist? What redirect to I pass to the oauth page?
var redirect_url='com.example.myapp:/oauth2Callback'
var url="https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=" + client_id + "&state=" + state + "&redirect_uri="+redirect_url+"&scope=" + scope;
Anyone experienced with this?