I'm using cordova 3.5-0.26 & inAppBrowser 0.5.0
Now I'm loading an external page in inAppBrowser. There is a download button. When I press the download it doesn't do anything. I thing download is off in inAppBrowser. So as in the cordova view.
Then I tried to active the download manager using following code (for Android)
appView.setDownloadListener(new DownloadListener() {
public void onDownloadStart(String url, String userAgent,
String contentDisposition, String mimetype,
long contentLength) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}
});
This doesn't work for the inAppBrowser either.
1) How can I enable the download in inAppBrowser? 2) Is there any way to catch the download with default download manager? 3) If possible please mention solution for both ios and android. if not android will do for now. Please help...