Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49190

Chrome-extension:// ERR_FILE_NOT_FOUND error

$
0
0

@brianmat wrote:

I'm working on converting our current Ionic app to run as a Chrome packaged app and the one part I am hitting a wall on is converting our Google map page.

I've included the iframe for sandboxing and the page is very basic

<ion-content class="padding">
    <ion-content data-tap-disabled="true">
        <iframe src="map.html">

        </iframe>
    </ion-content>
</ion-content>

The map page throws an error in the inspector window

GET chrome-extension://<appKey>/map.html net::ERR_FILE_NOT_FOUND

I've whitelisted with Angular in my app.js

.config(['$compileProvider', function ($compileProvider) {

    $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob)|data:image\/|\/?img\//);
    $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|chrome-extension)|\/?app\//);

}])

Finally my manifest.json file has the sandbox config for the map page

"sandbox": {
  "pages": [
    "/app/views/map.html"
  ]
}

I'm stuck on what to do next. I'm not getting many hits on Google on this one and the error is coming from ionic.bundle.js (forEach.append)

Right now the map component is the only thing keeping me from the full conversion. I'm pretty sure I'll run into a whole new set of errors on the map page since it's running Angular Google Map scripts.

I'm close to punting on a hosted app as my next test, but I'd like to get this sorted out before I go down the path of option B.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>