Is it possible to have map of any country pre-downloaded in apk? #10009
-
For example, let's say the app is about Tajikistan (map is quite small). I don't want users to download the map within the app, but rather have the map already included in the APK file. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I don't know. The world map is included in the app in most builds (not in the FDroid build), so taking a look at how it is handled might help. |
Beta Was this translation helpful? Give feedback.
-
I literally put the map to assets and programmed the app to move it from assets to where it usually stores the map. For android: For iOS: I didn't search. |
Beta Was this translation helpful? Give feedback.
I literally put the map to assets and programmed the app to move it from assets to where it usually stores the map.
For android:
App downloads .mwm file for specific place to this path "/storage/emulated/0/Android/data//files//.mwm". In my case it was "/storage/emulated/0/Android/data/tj.tourism.rebus/files/240429/Tajikistan.mwm". It would be better to look where your file would be downloaded for your package and then put the map to assets folder and write code that will move from the assets to where it stores the map.
For iOS: I didn't search.