{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3935","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3935/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3935/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3935/events","html_url":"https://github.com/NativeScript/NativeScript/issues/3935","id":219197671,"number":3935,"title":"iOS: can't access images from local file system","user":{"login":"dxshindeo","id":18443089,"avatar_url":"https://avatars0.githubusercontent.com/u/18443089?v=3","gravatar_id":"","url":"https://api.github.com/users/dxshindeo","html_url":"https://github.com/dxshindeo","followers_url":"https://api.github.com/users/dxshindeo/followers","following_url":"https://api.github.com/users/dxshindeo/following{/other_user}","gists_url":"https://api.github.com/users/dxshindeo/gists{/gist_id}","starred_url":"https://api.github.com/users/dxshindeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxshindeo/subscriptions","organizations_url":"https://api.github.com/users/dxshindeo/orgs","repos_url":"https://api.github.com/users/dxshindeo/repos","events_url":"https://api.github.com/users/dxshindeo/events{/privacy}","received_events_url":"https://api.github.com/users/dxshindeo/received_events","type":"User","site_admin":false},"labels":[{"id":203690306,"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/iOS","name":"iOS","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars1.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars1.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-04-04T09:55:48Z","updated_at":"2017-06-26T05:01:03Z","closed_at":"2017-04-11T12:21:42Z","body":"I took a photo with `nativescript-camera` plugin, which saves the image to the gallery. I then use `nativescript-imagepicker` plugin to open the camera roll and I see the images I took with camera. I select an image, window goes back to the app. I then get the selected images file_uri: `file:///var/mobile/Media/DCIM/100APPLE/IMG_0001.JPG`\r\nBut then, when I put it in `Image` tag (dies silently as background-image), console says: `Unhandled Promise rejection: The requested URL was not found on this server.`\r\n\r\nSo basically this does not show me the image: \r\n```\r\n<Image src=\"file:///var/mobile/Media/DCIM/100APPLE/IMG_0001.JPG\" style=\"width: 100; height: 100;\"></Image>\r\n```\r\nWhen I take a picture and then run image-picker functions, I am asked for permissions, which I grant. Also double checked in Settings->my_app->Photos|Camera permissions are given.\r\n\r\nNS CLI: 2.5.3\r\nTesting on real iPhone 5."},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/310964175","html_url":"https://github.com/NativeScript/NativeScript/issues/3935#issuecomment-310964175","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3935","id":310964175,"user":{"login":"viniciodeltoro","id":5911307,"avatar_url":"https://avatars0.githubusercontent.com/u/5911307?v=3","gravatar_id":"","url":"https://api.github.com/users/viniciodeltoro","html_url":"https://github.com/viniciodeltoro","followers_url":"https://api.github.com/users/viniciodeltoro/followers","following_url":"https://api.github.com/users/viniciodeltoro/following{/other_user}","gists_url":"https://api.github.com/users/viniciodeltoro/gists{/gist_id}","starred_url":"https://api.github.com/users/viniciodeltoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viniciodeltoro/subscriptions","organizations_url":"https://api.github.com/users/viniciodeltoro/orgs","repos_url":"https://api.github.com/users/viniciodeltoro/repos","events_url":"https://api.github.com/users/viniciodeltoro/events{/privacy}","received_events_url":"https://api.github.com/users/viniciodeltoro/received_events","type":"User","site_admin":false},"created_at":"2017-06-26T05:01:03Z","updated_at":"2017-06-26T05:01:03Z","body":"If I have an image saved in the app 'documents' folder? How can I get the correct path of it and assign it to the 'page.backgroundImage' in iOS?\r\nI tried using 'fs.knownFolders.documents().path' but I get an error when I do that.\r\nThe reason I want to use 'page.backgroundImage' instead of an Image element is because I can display the content in 'immersive mode' by hiding the status bar but I'm unable to do that by using an Image element (the screen still shows the status bar area colored with the page's background color)"}}
{"actor":{"display_login":"viniciodeltoro"}}