{"action":"created","issue":{"url":"https://api.github.com/repos/becvert/cordova-plugin-device-name/issues/11","repository_url":"https://api.github.com/repos/becvert/cordova-plugin-device-name","labels_url":"https://api.github.com/repos/becvert/cordova-plugin-device-name/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/becvert/cordova-plugin-device-name/issues/11/comments","events_url":"https://api.github.com/repos/becvert/cordova-plugin-device-name/issues/11/events","html_url":"https://github.com/becvert/cordova-plugin-device-name/issues/11","id":314184554,"number":11,"title":"[Android] BLUETOOTH permission issue","user":{"login":"zabojad","id":1238030,"avatar_url":"https://avatars0.githubusercontent.com/u/1238030?v=4","gravatar_id":"","url":"https://api.github.com/users/zabojad","html_url":"https://github.com/zabojad","followers_url":"https://api.github.com/users/zabojad/followers","following_url":"https://api.github.com/users/zabojad/following{/other_user}","gists_url":"https://api.github.com/users/zabojad/gists{/gist_id}","starred_url":"https://api.github.com/users/zabojad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabojad/subscriptions","organizations_url":"https://api.github.com/users/zabojad/orgs","repos_url":"https://api.github.com/users/zabojad/repos","events_url":"https://api.github.com/users/zabojad/events{/privacy}","received_events_url":"https://api.github.com/users/zabojad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-13T17:09:30Z","updated_at":"2018-05-06T09:52:02Z","closed_at":null,"author_association":"NONE","body":"This plugin is add the BLUETOOTH permission in the AndroidManifest.xml.\r\n```\r\n        <config-file target='AndroidManifest.xml' parent='/manifest'>\r\n            <uses-permission android:name=\"android.permission.BLUETOOTH\" android:maxSdkVersion=\"18\" />\r\n        </config-file>\r\n```\r\n\r\nBut when we actually use Bluetooth with the cordova-ble-central-plugin for example, this permission is added twice in the AndroidManifest.xml because of the `android:maxSdkVersion=\"18\"` which leads to the compilation to fail.\r\n\r\nRemoving `android:maxSdkVersion=\"18\"` solved the issue. Would you like me to issue a PR for that?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/becvert/cordova-plugin-device-name/issues/comments/386867422","html_url":"https://github.com/becvert/cordova-plugin-device-name/issues/11#issuecomment-386867422","issue_url":"https://api.github.com/repos/becvert/cordova-plugin-device-name/issues/11","id":386867422,"user":{"login":"becvert","id":1422417,"avatar_url":"https://avatars0.githubusercontent.com/u/1422417?v=4","gravatar_id":"","url":"https://api.github.com/users/becvert","html_url":"https://github.com/becvert","followers_url":"https://api.github.com/users/becvert/followers","following_url":"https://api.github.com/users/becvert/following{/other_user}","gists_url":"https://api.github.com/users/becvert/gists{/gist_id}","starred_url":"https://api.github.com/users/becvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/becvert/subscriptions","organizations_url":"https://api.github.com/users/becvert/orgs","repos_url":"https://api.github.com/users/becvert/repos","events_url":"https://api.github.com/users/becvert/events{/privacy}","received_events_url":"https://api.github.com/users/becvert/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T09:52:02Z","updated_at":"2018-05-06T09:52:02Z","author_association":"OWNER","body":"Would you be able to test the master branch please?\r\nI added an [after_prepare hook](https://github.com/becvert/cordova-plugin-device-name/blob/master/merge-bluetooth-permission.js)."}}
{"actor":{"display_login":"becvert"}}