fix(ble) #3506 : leave a chance to client to reorder sequences (#3509)

* Fix #3506

* Update documenation
This commit is contained in:
CodeTroopers 2020-08-14 17:30:18 +02:00 committed by GitHub
parent f413dab4e2
commit 25bf7437b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,9 +455,12 @@ export class BLE extends IonicNativePlugin {
* @param {string} serviceUUID UUID of the BLE service
* @param {string} characteristicUUID UUID of the BLE characteristic
* @return {Observable<any>} Returns an Observable that notifies of characteristic changes.
* The observer emit an array with data at index 0 and sequence order at index 1.
* The sequence order is always undefined on iOS. On android it leave the client to check the sequence order and reorder if needed
*/
@Cordova({
observable: true,
destruct: true,
clearFunction: 'stopNotification',
clearWithArgs: true,
})