{"action":"created","issue":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/114","labels_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/114/comments","events_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/114/events","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/114","id":114382976,"number":114,"title":"Possible conflict with the BluetoothSerial plugin?","user":{"login":"jernejc","id":1895106,"avatar_url":"https://avatars.githubusercontent.com/u/1895106?v=3","gravatar_id":"","url":"https://api.github.com/users/jernejc","html_url":"https://github.com/jernejc","followers_url":"https://api.github.com/users/jernejc/followers","following_url":"https://api.github.com/users/jernejc/following{/other_user}","gists_url":"https://api.github.com/users/jernejc/gists{/gist_id}","starred_url":"https://api.github.com/users/jernejc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jernejc/subscriptions","organizations_url":"https://api.github.com/users/jernejc/orgs","repos_url":"https://api.github.com/users/jernejc/repos","events_url":"https://api.github.com/users/jernejc/events{/privacy}","received_events_url":"https://api.github.com/users/jernejc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-31T02:41:53Z","updated_at":"2015-12-03T20:57:56Z","closed_at":"2015-12-03T20:57:55Z","body":"Hi\r\n\r\nThanks for the plugin(s)!\r\n\r\niPhone 5s (iOS 8)\r\nCurrently testing on module BC127 from BlueCreation:\r\nhttps://www.bluecreation.com/product_info.php?products_id=38\r\n\r\nI start the BLE scan with an empty array and 10 second time interval, but it seems like after the module is detected I get the following error:\r\n\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: advertising)'\r\n*** First throw call stack:\r\n(0x2da05ecb 0x381a0ce7 0x2d94117f 0xd713d 0xcf203 0x2d727bb3 0x2d728083 0x2d73066f 0x38689d53 0x38689d3f 0x3868c6c3 0x2d9d0641 0x2d9cef0d 0x2d939729 0x2d93950b 0x328a86d3 0x3029a871 0xcc13b 0x3869eab7)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\nThe weird part is, that the error is coming for the BluetoothSerial plugin, which I'm using for Android SPP connections, but trying to fallback on this plugin for iOS BLE connections (the BluetoothSerial plugin didn't list the module, despite being paired/connected to the device).\r\n\r\nThe scan is definitely initialized by the BLE central plugin, but the error comes from:\r\ncordova-plugin-bluetooth-serial/src/ios/CBPeripheral+Extensions.m (line 39)\r\n\r\nAny ideas? I can't really remove the serial plugin as it's working great for Android and this seemed like a nice fallback for iOS.\r\n\r\nEDIT:\r\nI tried removing the Serial plugin and I get the following error:\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CBPeripheral setAdvertisementData:RSSI:]: unrecognized selector sent to instance 0x14667180'\r\n*** First throw call stack:\r\n(0x2da05ecb 0x381a0ce7 0x2da097f7 0x2da080f7 0x2d957058 0x9f36d 0x2d727bb3 0x2d728083 0x2d73066f 0x38689d53 0x38689d3f 0x3868c6c3 0x2d9d0641 0x2d9cef0d 0x2d939729 0x2d93950b 0x328a86d3 0x3029a871 0x9c2f3 0x3869eab7)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\nComming from:\r\nBLECentralPlugin.m line 307"},"comment":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/comments/161782514","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/114#issuecomment-161782514","issue_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/114","id":161782514,"user":{"login":"don","id":3133,"avatar_url":"https://avatars.githubusercontent.com/u/3133?v=3","gravatar_id":"","url":"https://api.github.com/users/don","html_url":"https://github.com/don","followers_url":"https://api.github.com/users/don/followers","following_url":"https://api.github.com/users/don/following{/other_user}","gists_url":"https://api.github.com/users/don/gists{/gist_id}","starred_url":"https://api.github.com/users/don/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/don/subscriptions","organizations_url":"https://api.github.com/users/don/orgs","repos_url":"https://api.github.com/users/don/repos","events_url":"https://api.github.com/users/don/events{/privacy}","received_events_url":"https://api.github.com/users/don/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T20:57:55Z","updated_at":"2015-12-03T20:57:55Z","body":"Fixed the conflict in version 0.4.5 of [cordova-plugin-bluetooth-serial](https://www.npmjs.com/package/cordova-plugin-bluetooth-serial)"}}