phonegap crossplatform redirection to local file

Posted by Marco Gagliardi on Stack Overflow See other posts from Stack Overflow or by Marco Gagliardi
Published on 2012-10-16T16:58:33Z Indexed on 2012/10/16 17:00 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

Hi I'm developing a phonegap + JQueryMobile app, which should be correctly executed on Android, iOs and WindowsPhone as well.

I need to exploit an external service wich requires one callback url to redirect the app to in case of success, and one in case of error (pretty common situation. In my case both will be local files, say www/success.html and www/error.html). Of course I could write different paths for each device (e.g. file:///android_asset/www/success.html on Android), but i'm wondering if the framework provide a more simple elegant solution.

So the questions is, how can i get a unique absolute URL wich allows me to perform a cross-platform HTTP redirection from a remote web page to a local file within a phonegap application?

Thanks

© Stack Overflow or respective owner

Related posts about redirect

Related posts about phonegap