0

i'm new to ionic app development i'm developing a app which uses WordPress json api to retrieve information from WordPress site and display it in app.In mobile the external links are handled by Cordova InAppBrowser i want to include the app header bar in cordova inappbrowser and also i want to know other methods of handling external link in api.

1 Answers1

0

You have to override the WebChromeClient method to achieve your task as: What's the difference between setWebViewClient vs. setWebChromeClient?

Community
  • 1
  • 1
taranjeetsapra
  • 524
  • 7
  • 19
  • create inner class in **MainActivity** having loadUrl declaration for instance: **class InnerClass extends WebChromeClient{ public void onPageFinished(WebView view, String url) { super.onPageFinished(mWebView, url); Toast.makeText(getApplicationContext(), "Done!", Toast.LENGTH_SHORT).show(); //do some code} }** – taranjeetsapra Oct 07 '16 at 16:24
  • You can also refer:[link](http://stackoverflow.com/questions/6719814/onpagefinished-never-called-webview) – taranjeetsapra Oct 07 '16 at 16:30