{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6273","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6273/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6273/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6273/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6273","id":175505466,"number":6273,"title":"[android] Using asset:// URL with path outside of APK","user":{"login":"bigsassy","id":382091,"avatar_url":"https://avatars.githubusercontent.com/u/382091?v=3","gravatar_id":"","url":"https://api.github.com/users/bigsassy","html_url":"https://github.com/bigsassy","followers_url":"https://api.github.com/users/bigsassy/followers","following_url":"https://api.github.com/users/bigsassy/following{/other_user}","gists_url":"https://api.github.com/users/bigsassy/gists{/gist_id}","starred_url":"https://api.github.com/users/bigsassy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigsassy/subscriptions","organizations_url":"https://api.github.com/users/bigsassy/orgs","repos_url":"https://api.github.com/users/bigsassy/repos","events_url":"https://api.github.com/users/bigsassy/events{/privacy}","received_events_url":"https://api.github.com/users/bigsassy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"000000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-07T13:41:38Z","updated_at":"2016-09-14T21:04:24Z","closed_at":null,"body":"**Platform:** Android\r\n**Mapbox SDK version:** react-native-mapbox-gl 5.0.0 which uses mapbox-android-sdk 4.1.1\r\n\r\n### Issue\r\n\r\nThe only way to access local files on Android via `asset://` is if it's bundled with the APK.  Since you can't modify the APK from the app, Android currently doesn't support assets that have been downloaded after the app is installed.\r\n\r\nOn iOS, I've been able to specify a path where files were downloaded onto the user's device, so no issues there.\r\n\r\n### My Use Case\r\n\r\nIn the app I'm developing, a user has to log in.  Afterwards, the app will use their account information to generate the user's style and tilejson files along with downloading a set of vector tiles.\r\n\r\nOn iOS, I can point the `asset://` URL to these generated and downloaded files, and everything works great.  But on Android, there's not a way to shove these files into the signed APK programatically.\r\n\r\nAm I missing something obvious to make this use case work on Android?  Or am I hampered by `asset://` only allowing access to pre-bundled APK assets?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/247152886","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6273#issuecomment-247152886","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6273","id":247152886,"user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T21:04:23Z","updated_at":"2016-09-14T21:04:23Z","body":"@cammace @zugaldia, is there any other way to refer to a local file that isn’t part of the .apk? For what it’s worth, the iOS and macOS SDKs had the same limitation until #6026. If it comes down to what `AssetFileSource::Impl` does with the URL, then would it be straightforward to detect and support absolute paths there?"}}
{"actor":{"display_login":"1ec5"}}