{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/186","repository_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme","labels_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/186/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/186/events","html_url":"https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/186","id":161644845,"number":186,"title":"Why isn't URL_SCHEMA a normal preference but a plugin variable?","user":{"login":"pke","id":164625,"avatar_url":"https://avatars.githubusercontent.com/u/164625?v=3","gravatar_id":"","url":"https://api.github.com/users/pke","html_url":"https://github.com/pke","followers_url":"https://api.github.com/users/pke/followers","following_url":"https://api.github.com/users/pke/following{/other_user}","gists_url":"https://api.github.com/users/pke/gists{/gist_id}","starred_url":"https://api.github.com/users/pke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pke/subscriptions","organizations_url":"https://api.github.com/users/pke/orgs","repos_url":"https://api.github.com/users/pke/repos","events_url":"https://api.github.com/users/pke/events{/privacy}","received_events_url":"https://api.github.com/users/pke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-22T10:21:11Z","updated_at":"2016-12-12T12:34:05Z","closed_at":null,"body":"Since its not a `config.xml` preference its very difficult to change the schema once you've added the plugin to your app. That is because for reasons unkown to me cordova writes the variable to the `app/plugins/<platform.ini>` file like this:\n\n```\n\"cordova-plugin-customurlscheme\": {\n            \"URL_SCHEME\": \"mycoolapp\",\n            \"ANDROID_SCHEME\": \" \",\n            \"ANDROID_HOST\": \" \",\n            \"ANDROID_PATHPREFIX\": \"/\",\n            \"PACKAGE_NAME\": \"app.id\"\n        }, \n```\n\nIf URL_SCHEME would be a normal `config.xml` preference like this:\n\n`<preference name=\"URL_SCHEME\" value=\"mycoolapp\" />`\n\nIt could be easily changed and only a small change in `plugin.xml` is needed to make this work.\n\nAt the moment, the only way to change the URL schema is to remove the plugin and re-add it to the app.\n"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/comments/266420723","html_url":"https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/186#issuecomment-266420723","issue_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/186","id":266420723,"user":{"login":"adityasaxena","id":993800,"avatar_url":"https://avatars.githubusercontent.com/u/993800?v=3","gravatar_id":"","url":"https://api.github.com/users/adityasaxena","html_url":"https://github.com/adityasaxena","followers_url":"https://api.github.com/users/adityasaxena/followers","following_url":"https://api.github.com/users/adityasaxena/following{/other_user}","gists_url":"https://api.github.com/users/adityasaxena/gists{/gist_id}","starred_url":"https://api.github.com/users/adityasaxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityasaxena/subscriptions","organizations_url":"https://api.github.com/users/adityasaxena/orgs","repos_url":"https://api.github.com/users/adityasaxena/repos","events_url":"https://api.github.com/users/adityasaxena/events{/privacy}","received_events_url":"https://api.github.com/users/adityasaxena/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T12:34:05Z","updated_at":"2016-12-12T12:34:05Z","body":"@pke Sorry. I think I'm confused what you're asking as well. \r\nMaybe you're asking about how cordova config.xml fundamentally works. \r\nMaybe you're asking about how this plugin does or does not comply with how config.xml fundamentally works.\r\n\r\nMaybe @EddyVerbruggen can explain."}}
{"actor":{"display_login":"adityasaxena"}}