You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After having installed the plugin and carried out initial development on Android (Kitkat 4.4) and a Samsung Gs4 i decided to test it out on IOS and immediately ran into a problem.
I am testing IOS on a iPad Mini and IOS 8.4 but specifying lower versions as target in xCode seems to make no difference.
The prepare method fails every time with little to no debug information being logged to the console. After having done some digging it appears to be failing at the native code level namely on getDeviceAllData().
I do not know Objective C so diving into the code isn't really an option, have a basic grasp of Java however.
For reference the iPad is connecting to the BLE device but fails to prepare.
Is this a known bug? (i tried a few of the forks which did not help), i am wondering if it is an issue with a missing file on IOS or something as i had issues with installing and had to manually add files to compile sources and link binary with libraries in xCode.
In case anyone is having the same issue i have managed to get around it (i think) by manually prepping the device using the following (pretty ugly) function
functionmanuallyPrepare(device){device.discoverServices(prepChars);functionprepChars(){// IOS hates anonymous callbacks apparentlyangular.forEach(device.services,function(service,i){if(service.uuid===tempServiceUUID)// store service index as different cross platform{tempServiceId=i;}device.services[i].discoverCharacteristics();// discover characteristics for each service});}returndevice;}
After having installed the plugin and carried out initial development on Android (Kitkat 4.4) and a Samsung Gs4 i decided to test it out on IOS and immediately ran into a problem.
I am testing IOS on a iPad Mini and IOS 8.4 but specifying lower versions as target in xCode seems to make no difference.
The prepare method fails every time with little to no debug information being logged to the console. After having done some digging it appears to be failing at the native code level namely on getDeviceAllData().
I do not know Objective C so diving into the code isn't really an option, have a basic grasp of Java however.
For reference the iPad is connecting to the BLE device but fails to prepare.
Is this a known bug? (i tried a few of the forks which did not help), i am wondering if it is an issue with a missing file on IOS or something as i had issues with installing and had to manually add files to compile sources and link binary with libraries in xCode.
Any help on this issue would be great, thanks
For reference here is my connect / prepare code
The text was updated successfully, but these errors were encountered: