@ionic/angular 4.0.0-beta.13 : Not allowed to load local resource : with webview 2.2.3 - Ionic CLI 4.3.1












0















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









share|improve this question

























  • 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


















0















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









share|improve this question

























  • 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
















0












0








0


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









share|improve this question
















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






android cordova ionic-framework ionic-native ionic4






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





















  • 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














2 Answers
2






active

oldest

votes


















1














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...






share|improve this answer































    0














    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="*"/>





    share|improve this answer
























    • 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













    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    1














    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...






    share|improve this answer




























      1














      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...






      share|improve this answer


























        1












        1








        1







        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...






        share|improve this answer













        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...







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 21 '18 at 14:24









        Ashish PatidarAshish Patidar

        288




        288

























            0














            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="*"/>





            share|improve this answer
























            • 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


















            0














            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="*"/>





            share|improve this answer
























            • 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
















            0












            0








            0







            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="*"/>





            share|improve this answer













            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="*"/>






            share|improve this answer












            share|improve this answer



            share|improve this answer










            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





















            • 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




















            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            Npm cannot find a required file even through it is in the searched directory