{"action":"created","issue":{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/424","repository_url":"https://api.github.com/repos/mixpanel/mixpanel-android","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/424/comments","events_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/424/events","html_url":"https://github.com/mixpanel/mixpanel-android/issues/424","id":204958496,"number":424,"title":"BLUETOOTH permission is listed as optional in docs but seems to be required","user":{"login":"agramian","id":7113257,"avatar_url":"https://avatars0.githubusercontent.com/u/7113257?v=4","gravatar_id":"","url":"https://api.github.com/users/agramian","html_url":"https://github.com/agramian","followers_url":"https://api.github.com/users/agramian/followers","following_url":"https://api.github.com/users/agramian/following{/other_user}","gists_url":"https://api.github.com/users/agramian/gists{/gist_id}","starred_url":"https://api.github.com/users/agramian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramian/subscriptions","organizations_url":"https://api.github.com/users/agramian/orgs","repos_url":"https://api.github.com/users/agramian/repos","events_url":"https://api.github.com/users/agramian/events{/privacy}","received_events_url":"https://api.github.com/users/agramian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-02-02T18:35:03Z","updated_at":"2017-09-21T14:21:08Z","closed_at":null,"author_association":"NONE","body":"The [Android setup docs](https://mixpanel.com/help/reference/android#installing-as) under *Step 2 - Add permissions to your AndroidManifest.xml:* list the BLUETOOTH permission as optional but I am seeing a consistent crash for at least a Samsung SM-925T.  I have not tested enough to determine if this is device specific but either way it should not happen.  It causes our app to go into a crash/restart cycle of sometimes more than 10 times.\r\n\r\n```\r\n02-02 10:09:11.688 13384-13405/? E/BluetoothAdapter: Application does not have bluetooth permission, registering is failed\r\n02-02 10:09:11.688 13384-13405/? E/BluetoothAdapter: java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10348 nor current process has android.permission.BLUETOOTH.\r\n                                                         at android.os.Parcel.readException(Parcel.java:1620)\r\n                                                         at android.os.Parcel.readException(Parcel.java:1573)\r\n                                                         at android.bluetooth.IBluetoothManager$Stub$Proxy.registerStateChangeCallback(IBluetoothManager.java:350)\r\n                                                         at android.bluetooth.BluetoothAdapter.<init>(BluetoothAdapter.java:594)\r\n                                                         at android.bluetooth.BluetoothAdapter.getDefaultAdapter(BluetoothAdapter.java:576)\r\n                                                         at com.mixpanel.android.mpmetrics.SystemInformation.isBluetoothEnabled(SystemInformation.java:141)\r\n                                                         at com.mixpanel.android.mpmetrics.AnalyticsMessages$Worker$AnalyticsMessageHandler.getDefaultEventProperties(AnalyticsMessages.java:559)\r\n                                                         at com.mixpanel.android.mpmetrics.AnalyticsMessages$Worker$AnalyticsMessageHandler.prepareEventObject(AnalyticsMessages.java:573)\r\n                                                         at com.mixpanel.android.mpmetrics.AnalyticsMessages$Worker$AnalyticsMessageHandler.handleMessage(AnalyticsMessages.java:251)\r\n                                                         at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                         at android.os.Looper.loop(Looper.java:158)\r\n                                                         at android.os.HandlerThread.run(HandlerThread.java:61)\r\n```"},"comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/comments/331171538","html_url":"https://github.com/mixpanel/mixpanel-android/issues/424#issuecomment-331171538","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/424","id":331171538,"user":{"login":"dementia2029","id":4173654,"avatar_url":"https://avatars0.githubusercontent.com/u/4173654?v=4","gravatar_id":"","url":"https://api.github.com/users/dementia2029","html_url":"https://github.com/dementia2029","followers_url":"https://api.github.com/users/dementia2029/followers","following_url":"https://api.github.com/users/dementia2029/following{/other_user}","gists_url":"https://api.github.com/users/dementia2029/gists{/gist_id}","starred_url":"https://api.github.com/users/dementia2029/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dementia2029/subscriptions","organizations_url":"https://api.github.com/users/dementia2029/orgs","repos_url":"https://api.github.com/users/dementia2029/repos","events_url":"https://api.github.com/users/dementia2029/events{/privacy}","received_events_url":"https://api.github.com/users/dementia2029/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T14:21:08Z","updated_at":"2017-09-21T14:21:08Z","author_association":"NONE","body":"I cant even download my app from play store from emulator because emulators does not have bluetooth!!! FIX IT"}}
{"actor":{"display_login":"dementia2029"}}