Invalid redirect_url when using JavaScript SDK in Cordova based hybrid Android app

%3CLINGO-SUB%20id%3D%22lingo-sub-329794%22%20slang%3D%22en-US%22%3EInvalid%20redirect_url%20when%20using%20JavaScript%20SDK%20in%20Cordova%20based%20hybrid%20Android%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329794%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20working%20on%20setting%20up%20a%20custom%20application%20using%20the%20Yammer%20JavaScript%20SDK.%26nbsp%3B%20Everything%20is%20working%20great%20in%20a%20browser%20where%20I%20can%20define%20my%20redirect_url%20properly%20(thanks%20for%20supporting%20localhost%20by%20the%20way).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20problem%20is%20when%20I%20try%20to%20run%20this%20from%20a%20hybrid%20app%20on%20Android%20(Cordova%20based).%26nbsp%3B%20When%20running%20from%20an%20app%20in%20Android%2C%20the%20base%20url%20actually%20file%3A%2F%2F%2Fandroid_assets%2Fwww%2F%26nbsp%3B%20which%20isn't%20a%20value%20redirect_url%20when%20I%20enter%20it%20into%20the%20whitelist%20field.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20even%20possible%20to%20use%20the%20JavaScript%20SDK%20in%20a%20Cordova%20based%20app%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20any%20pointers%20you%20can%20provide.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E--jb%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-329794%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAndroid%20App%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello,

 

I've working on setting up a custom application using the Yammer JavaScript SDK.  Everything is working great in a browser where I can define my redirect_url properly (thanks for supporting localhost by the way).  

 

My problem is when I try to run this from a hybrid app on Android (Cordova based).  When running from an app in Android, the base url actually file:///android_assets/www/  which isn't a value redirect_url when I enter it into the whitelist field.

 

Is it even possible to use the JavaScript SDK in a Cordova based app?

 

Appreciate any pointers you can provide.

 

Thanks,

 

--jb

0 Replies