{"action":"created","issue":{"url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http/issues/108","repository_url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http","labels_url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http/issues/108/comments","events_url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http/issues/108/events","html_url":"https://github.com/silkimen/cordova-plugin-advanced-http/issues/108","id":320801689,"number":108,"title":"Browser should support native browser fetch","user":{"login":"BorntraegerMarc","id":7549295,"avatar_url":"https://avatars2.githubusercontent.com/u/7549295?v=4","gravatar_id":"","url":"https://api.github.com/users/BorntraegerMarc","html_url":"https://github.com/BorntraegerMarc","followers_url":"https://api.github.com/users/BorntraegerMarc/followers","following_url":"https://api.github.com/users/BorntraegerMarc/following{/other_user}","gists_url":"https://api.github.com/users/BorntraegerMarc/gists{/gist_id}","starred_url":"https://api.github.com/users/BorntraegerMarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorntraegerMarc/subscriptions","organizations_url":"https://api.github.com/users/BorntraegerMarc/orgs","repos_url":"https://api.github.com/users/BorntraegerMarc/repos","events_url":"https://api.github.com/users/BorntraegerMarc/events{/privacy}","received_events_url":"https://api.github.com/users/BorntraegerMarc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T13:19:30Z","updated_at":"2018-05-07T13:30:12Z","closed_at":null,"author_association":"NONE","body":"In this section it's specified that browsers are supported: https://github.com/silkimen/cordova-plugin-advanced-http#browser-support\r\n\r\nHowever browser support is only enabled when `cordova` is used. Which is not always the case. For example not when I'm locally developing my app without running a production build to include `cordova`.\r\n\r\nSo by default this library should check if `cordova` is not undefined. And if yes -> it should use the native [browser fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) or [browser XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)\r\n\r\nI would even argue that even when `cordova` is **not** undefined that this library should always use these native ways to do a fetch. So development & production env is the same"},"comment":{"url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http/issues/comments/387065172","html_url":"https://github.com/silkimen/cordova-plugin-advanced-http/issues/108#issuecomment-387065172","issue_url":"https://api.github.com/repos/silkimen/cordova-plugin-advanced-http/issues/108","id":387065172,"user":{"login":"silkimen","id":4717881,"avatar_url":"https://avatars0.githubusercontent.com/u/4717881?v=4","gravatar_id":"","url":"https://api.github.com/users/silkimen","html_url":"https://github.com/silkimen","followers_url":"https://api.github.com/users/silkimen/followers","following_url":"https://api.github.com/users/silkimen/following{/other_user}","gists_url":"https://api.github.com/users/silkimen/gists{/gist_id}","starred_url":"https://api.github.com/users/silkimen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silkimen/subscriptions","organizations_url":"https://api.github.com/users/silkimen/orgs","repos_url":"https://api.github.com/users/silkimen/repos","events_url":"https://api.github.com/users/silkimen/events{/privacy}","received_events_url":"https://api.github.com/users/silkimen/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T13:30:12Z","updated_at":"2018-05-07T13:30:12Z","author_association":"OWNER","body":"Hi Marc, that's an interesting idea, but how do you want to load the web interface? Actually, Cordova is responsible for loading the plugins (native code AND web interface). Without loading Cordova, you won't even have the namespace `cordova.plugin.http` loaded."}}
{"actor":{"display_login":"silkimen"}}