pic2shop-client icon indicating copy to clipboard operation
pic2shop-client copied to clipboard

Callback scheme creating multiple windows in Android...

Open tyrex1975 opened this issue 9 years ago • 1 comments

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?

tyrex1975 avatar Feb 23 '16 23:02 tyrex1975

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).

VisionSmarts avatar Feb 24 '16 16:02 VisionSmarts