Hello,

I am trying to use https://github.com/gregallensworth/L.TileLayer.Cordova/ for making leaflet maps to work in offline mode.

I have added the above mentioned plugin to a sample mobile app and it is properly loading the map, but when i try to switch to offline mode, it is giving error 

"user.outsystemscloud.com/:1 Not allowed to load local resource: file:///data/user/0/com.outsystemscloud.user.OfflineMapCordova/files/files/LTileLayerCordovaExample//example-8-59-105.png"

Any help on how to get access to these local resources would be appreciated.

Looking forward for the replies.

Thanks,

Preeti Kumari

So, in the online mode, the map was working? 

Also, the app has already loaded the map right in its local file system?

Swatantra Kumar wrote:

So, in the online mode, the map was working? 

Also, the app has already loaded the map right in its local file system?


So, in the online mode, the map was working?  Yes, Map is working fine in online mode.

Also, the app has already loaded the map right in its local file system?  hope fully yes, because the path used to save the images is root dir (by window.requestFileSystem(LocalFileSystem.PERSISTENT,o, func()) with given folder name, but i am not able to see that folder in phone.

Could that be that app has no permission to save files?

Swatantra Kumar wrote:

Could that be that app has no permission to save files?

how to check this?


In Storage permission I have given access to this app, but still no luck :(

I also try adding that plugin(https://github.com/gregallensworth/L.TileLayer.Cordova.git) in Extensibility Configuration but not able to generate app after adding this.

In Android on 2019-12-17 at 16:01:46 - Error fetching Cordova plugin: https://github.com/gregallensworth/L.TileLayer.Cordova.git.

Processing Upload...

I am attaching  my sample app, can any one please have a look on it and let me know if  i am doing something wrong or missing anything.

Issue is with Offline mode only.

Any pointer will be appreciated.


Thanks,

Preeti Kuamri

Preeti, the app has not uploaded well. It is showing as "processing..."


App attached