-
Notifications
You must be signed in to change notification settings - Fork 8
Map file not found #11
Comments
Hello. I placed the file under /storage/sdcard, as you can see below: If you place it under 'Download' for example, try The way it is done in the code is like this: So the path you pass is the path it is going to look for. WWW folderAbour placing it under the |
Thanks for your help. |
I've worked again on this problem, and i've finally found a solution. I write my results here, as it could be useful for others. First, it's doesn't seem possible for security reason to access directly files stored in the project folder : https://github.com/apache/cordova-plugin-file A solution is to download and store the map in the /Download folder of the sdCard (/mnt/sdcard/Download/albania.map) |
Hello,
I try to use the plugin with the Ionic framework. When i run it in the android emulator with genymotion, i've always the same error message in the console : 'Map file not found'. Here is the code in the controller :
$ionicPlatform.ready(function() {
}
I've uploaded the 'map into the download folder by dragging the file into the emulator, and i can see the file in the file manager of the emulator. I tested many different paths (for instance /storage/emulated/0/Download/albania.map, /sdcard/Download/albania.map, etc.), but the plugin never finds the map file . Also by default, the map is stored within my project in the www/data folder. So i tried also '/android_asset/www/data' or 'file:///android_asset/www/data' folders, but it's not working.
Do you have any idea how to specify the folder ?
The text was updated successfully, but these errors were encountered: