@ionic/angular 4.0.0-beta.13 : Not allowed to load local resource : with webview 2.2.3 - Ionic CLI 4.3.1
After taking the photo from camera, these paths come.
file:///data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
I use Ionic 4 in which WebView is 2.2.3, all types of replies have been observed by applying but no effects came.
"cordova-plugin-ionic-webview": "2.2.3"
I used to answer this one
Not allowed to load local resource: ionic 3 android
So I do not show the application on the device and this one is not the same.
Failed to load resource: net::ERR_FILE_NOT_FOUND

add a comment |
After taking the photo from camera, these paths come.
file:///data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
I use Ionic 4 in which WebView is 2.2.3, all types of replies have been observed by applying but no effects came.
"cordova-plugin-ionic-webview": "2.2.3"
I used to answer this one
Not allowed to load local resource: ionic 3 android
So I do not show the application on the device and this one is not the same.
Failed to load resource: net::ERR_FILE_NOT_FOUND

I also changed the image url to normalURL, but no one is working. Normal is something like this/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
– Ashish Patidar
Nov 21 '18 at 7:41
add a comment |
After taking the photo from camera, these paths come.
file:///data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
I use Ionic 4 in which WebView is 2.2.3, all types of replies have been observed by applying but no effects came.
"cordova-plugin-ionic-webview": "2.2.3"
I used to answer this one
Not allowed to load local resource: ionic 3 android
So I do not show the application on the device and this one is not the same.
Failed to load resource: net::ERR_FILE_NOT_FOUND

After taking the photo from camera, these paths come.
file:///data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
I use Ionic 4 in which WebView is 2.2.3, all types of replies have been observed by applying but no effects came.
"cordova-plugin-ionic-webview": "2.2.3"
I used to answer this one
Not allowed to load local resource: ionic 3 android
So I do not show the application on the device and this one is not the same.
Failed to load resource: net::ERR_FILE_NOT_FOUND


edited Nov 21 '18 at 6:41
Ashish Patidar
asked Nov 20 '18 at 14:56


Ashish PatidarAshish Patidar
288
288
I also changed the image url to normalURL, but no one is working. Normal is something like this/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
– Ashish Patidar
Nov 21 '18 at 7:41
add a comment |
I also changed the image url to normalURL, but no one is working. Normal is something like this/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
– Ashish Patidar
Nov 21 '18 at 7:41
I also changed the image url to normalURL, but no one is working. Normal is something like this
/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
– Ashish Patidar
Nov 21 '18 at 7:41
I also changed the image url to normalURL, but no one is working. Normal is something like this
/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
– Ashish Patidar
Nov 21 '18 at 7:41
add a comment |
2 Answers
2
active
oldest
votes
I have found the solution of my problem.
I have done this link which is working perfectly.
https://devdactic.com/ionic-4-image-upload-storage/
And in my config.xml, extra did not write anything.
inshort :
new webview plugin are not support file:/// url
first convert url
into http://localhost:<post>/url
using this function this.webview.convertFileSrc(img);
return this function value like this http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
my suggestion use above link for same kind of problem...
add a comment |
Please try add this to your config.xml:
<access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
I'm using native plugins in; These are:"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are:"cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53395712%2fionic-angular-4-0-0-beta-13-not-allowed-to-load-local-resource-with-webview%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have found the solution of my problem.
I have done this link which is working perfectly.
https://devdactic.com/ionic-4-image-upload-storage/
And in my config.xml, extra did not write anything.
inshort :
new webview plugin are not support file:/// url
first convert url
into http://localhost:<post>/url
using this function this.webview.convertFileSrc(img);
return this function value like this http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
my suggestion use above link for same kind of problem...
add a comment |
I have found the solution of my problem.
I have done this link which is working perfectly.
https://devdactic.com/ionic-4-image-upload-storage/
And in my config.xml, extra did not write anything.
inshort :
new webview plugin are not support file:/// url
first convert url
into http://localhost:<post>/url
using this function this.webview.convertFileSrc(img);
return this function value like this http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
my suggestion use above link for same kind of problem...
add a comment |
I have found the solution of my problem.
I have done this link which is working perfectly.
https://devdactic.com/ionic-4-image-upload-storage/
And in my config.xml, extra did not write anything.
inshort :
new webview plugin are not support file:/// url
first convert url
into http://localhost:<post>/url
using this function this.webview.convertFileSrc(img);
return this function value like this http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
my suggestion use above link for same kind of problem...
I have found the solution of my problem.
I have done this link which is working perfectly.
https://devdactic.com/ionic-4-image-upload-storage/
And in my config.xml, extra did not write anything.
inshort :
new webview plugin are not support file:/// url
first convert url
into http://localhost:<post>/url
using this function this.webview.convertFileSrc(img);
return this function value like this http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
my suggestion use above link for same kind of problem...
answered Nov 21 '18 at 14:24


Ashish PatidarAshish Patidar
288
288
add a comment |
add a comment |
Please try add this to your config.xml:
<access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
I'm using native plugins in; These are:"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are:"cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
add a comment |
Please try add this to your config.xml:
<access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
I'm using native plugins in; These are:"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are:"cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
add a comment |
Please try add this to your config.xml:
<access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
Please try add this to your config.xml:
<access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*"/>
<allow-navigation href="data:*"/>
<allow-navigation href="*"/>
answered Nov 21 '18 at 7:48
markofmarkof
115
115
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
I'm using native plugins in; These are:"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are:"cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
add a comment |
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
I'm using native plugins in; These are:"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are:"cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
hi @markof Your suggestion was applied, but there was no effect.
– Ashish Patidar
Nov 21 '18 at 9:56
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
What cordova plugin are you use for the camera ?
– markof
Nov 21 '18 at 10:47
I'm using native plugins in; These are:
"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are: "cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
I'm using native plugins in; These are:
"@ionic-native/camera": "^5.0.0-beta.21", "@ionic-native/core": "^5.0.0-beta.21", "@ionic-native/file": "^5.0.0-beta.21", "@ionic-native/file-path": "^5.0.0-beta.21", "@ionic-native/file-transfer": "^5.0.0-beta.21",
and cordova plugin they are: "cordova-plugin-camera": "4.0.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-filepath": "1.4.2",
– Ashish Patidar
Nov 21 '18 at 10:59
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53395712%2fionic-angular-4-0-0-beta-13-not-allowed-to-load-local-resource-with-webview%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I also changed the image url to normalURL, but no one is working. Normal is something like this
/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
– Ashish Patidar
Nov 21 '18 at 7:41