pic2shop-client
pic2shop-client copied to clipboard
Callback scheme creating multiple windows in Android...
I'm using the custom URL scheme in my web app to call Pic2Shop, with a callback to the same webpage.
Unfortunately when I'm using an Android device (KitKat/Chrome) with each call I make, the callback URL gets opened in a new window. So I eventually end up with lots of windows open.
I've tried closing the original window prior to making the 'pic2shop:' call, however the security model of Chrome prevents window self closure.
I also tried embedding some custom javascript in the callback to call the window.open(url, name) method and specify a constant window name, but it appears javascript doesn't work in the free client.
Is there any way of making the callback open the original window?
I am afraid it is not possible. We have had the same question on iOS for years, and it is just the way the OS handles the callback. The callback is a simple http:// link, there can't be any javascript there.
If you use the app "pic2shop pro", you can use its embedded browser and avoid the back-and-forth (and the new window).