{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/issues/33","repository_url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine","labels_url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/issues/33/comments","events_url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/issues/33/events","html_url":"https://github.com/driftyco/cordova-plugin-wkwebview-engine/issues/33","id":173131477,"number":33,"title":"Is it possible to intercept / handle requests for paths outside app root?","user":{"login":"ghenry22","id":7463213,"avatar_url":"https://avatars.githubusercontent.com/u/7463213?v=3","gravatar_id":"","url":"https://api.github.com/users/ghenry22","html_url":"https://github.com/ghenry22","followers_url":"https://api.github.com/users/ghenry22/followers","following_url":"https://api.github.com/users/ghenry22/following{/other_user}","gists_url":"https://api.github.com/users/ghenry22/gists{/gist_id}","starred_url":"https://api.github.com/users/ghenry22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghenry22/subscriptions","organizations_url":"https://api.github.com/users/ghenry22/orgs","repos_url":"https://api.github.com/users/ghenry22/repos","events_url":"https://api.github.com/users/ghenry22/events{/privacy}","received_events_url":"https://api.github.com/users/ghenry22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/labels/needs%20reply","name":"needs reply","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-25T07:25:09Z","updated_at":"2016-10-24T14:57:55Z","closed_at":null,"body":"It would be great if there was a way for this plugin to intercept requests to standard paths outside of the application root so that they can be used in wkwebview.\r\n\r\nFor example my app downloads files which should be persistent and not wiped by the OS to cordova.file.datadirectory using the filetransfer plugin and the file plugin.  I then want to display images from this path within the app, or play video / sound files from these paths within the app.\r\n\r\nI can save the files here with no problem, and I can check that they exist using the file plugin.\r\n\r\nWhat I can't do is display an image from the datadirectory when using this wkwebview plugin.  It just gets an error.  It doesn't seem like these requests are being intercepted even though they are starting with file: protocol.\r\n\r\nIf I drop by to uiwebview or test on android everything works so all my paths etc are working and files are present and accounted for.\r\n\r\nGiven that the file plugin CAN read the files from the file system would it be possible to implement an interceptor for requests to these common local storage paths? Perhaps it could be intercepted and routed to the file plugin to fulfill rather than just trying to load from the local filesystem?\r\n\r\nIf I have just missed something and this should already be possible please let me know."},"comment":{"url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/issues/comments/255765024","html_url":"https://github.com/driftyco/cordova-plugin-wkwebview-engine/issues/33#issuecomment-255765024","issue_url":"https://api.github.com/repos/driftyco/cordova-plugin-wkwebview-engine/issues/33","id":255765024,"user":{"login":"bmcharg","id":1164658,"avatar_url":"https://avatars.githubusercontent.com/u/1164658?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcharg","html_url":"https://github.com/bmcharg","followers_url":"https://api.github.com/users/bmcharg/followers","following_url":"https://api.github.com/users/bmcharg/following{/other_user}","gists_url":"https://api.github.com/users/bmcharg/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcharg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcharg/subscriptions","organizations_url":"https://api.github.com/users/bmcharg/orgs","repos_url":"https://api.github.com/users/bmcharg/repos","events_url":"https://api.github.com/users/bmcharg/events{/privacy}","received_events_url":"https://api.github.com/users/bmcharg/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T14:57:55Z","updated_at":"2016-10-24T14:57:55Z","body":"Is there any update on this? I could really do with being to access images and videos from the Documents directory rather than app path, but can't seem to find a way to get it working with the plugin enabled."}}
{"actor":{"display_login":"bmcharg"}}