From 25bf7437b5851ef15637f1eb40146d4dab32eccf Mon Sep 17 00:00:00 2001 From: CodeTroopers Date: Fri, 14 Aug 2020 17:30:18 +0200 Subject: [PATCH] fix(ble) #3506 : leave a chance to client to reorder sequences (#3509) * Fix #3506 * Update documenation --- src/@ionic-native/plugins/ble/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts index 5405c63df..aa359a6d4 100644 --- a/src/@ionic-native/plugins/ble/index.ts +++ b/src/@ionic-native/plugins/ble/index.ts @@ -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} 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, })