Ionic inappbrowser not working after coming back from external link

I have and ionic project with ios, android and browser. The problem is in IOS and Android: from, after opening a login page (which in an external server) in the iOS browser without any problem, that external page has a link back to the ionic project(to map.component.html) which opens alright but buttons in the page which should open the browser again will not work, not error no nothing, just there is no action.

If I open map.component.html directly from inside the ionic project the button work normally and the browser is open. It’s only where I come back from an external page when button do nothing.

Any help would be much appreciate it, it’s been days banging my head against the wall…

I wrote details in stackoverflow