1
I created an application for Facebook that, briefly, at a certain time it uploads a photo to the visitor’s album, and then use the var janela = window.open({urldafoto})
to open this photo in the album. So far so good.
I needed to know when that window would close, and how onunload
does not work for other domains, I made a script using the setTimeout
checking the property janela.closed
.
On PC this application is working 100% as it should.
The problem is when I open it by mobile with Android, because when I click on the button to open the window, Android asks me if I want to open using the Facebook app (installed on mobile), and this hinders the janela.closed
.
Is there any way to force Android open the link in the browser itself in use?
If you have any other idea how to monitor if the window is closed, it would also be interesting to know.