15
votes

I have a page hosted online accessed that page in my phonegap application but now i want to come back to my local files in

file:///android_asset/www/profile.html

but it gives me error:

08-21 14:08:00.324: E/Web Console(8304): Not allowed to load local resource: file:///android_asset/www/profile.html at null:0

How do I fix this issue.

3
i guess you gotta open the hosted page in InApp Browser so that you can come back to app on close of InApp BrowserGandhi
Did yo had a check on this?Gandhi
Fixed that in 2014.Huzoor Bux
@Nico i guess you gotta open the hosted page in InApp Browser so that you can come back to app on close of InApp BrowserGandhi

3 Answers

0
votes

You gotta open the hosted page in InApp Browser so that you can come back to app on close of InApp Browser.

The basic working sample of InAppBroswer plugin along with returning to app on click of back button in InAppBrowser can be fonud at the following github link. Hope it helps.

0
votes

You need to use InAppBroswer plugin for that.

cordova plugin add cordova-plugin-inappbrowser

Plugin found here

0
votes

Found that you can access it through the cdvfile:// protocol as long as you have the permissions set in config.xml