0

In phonegap app all external link opening in default webview browser, i need to give a close button which will close the current window and back to app. Same thing what a back button do in android.

I have tried window.close() but it is not working on app.

Swapnil Patwa
  • 4,069
  • 3
  • 25
  • 37
  • 1
    Does [this](http://stackoverflow.com/questions/12297525/exit-from-app-when-click-button-in-android-phonegap) help? – S.C. Nov 05 '15 at 10:06

1 Answers1

2

A good approach for external links is to open them using the in-app-browser plugin. This ensures all external links open nicely across multiple devices. It also makes it easier to open and close external links.

For example opening an external link on iOS can often result in not being able to get back to your app. The in-app-browser plugin resolves that issue.

Filipe Teixeira
  • 3,565
  • 1
  • 25
  • 45