Fly Mambo drone with a Cordova mobile application

Hi guys,

I am trying to pilot a Mambo drone on an Android cordova mobile app but I lose the connection to the drone after 5 to 10 seconds.

I have implemented a bluetooth connection to the Mambo drone thanks to this plugin: https://github.com/don/cordova-plugin-ble-central

Everything works fine until I try to start the handshake with the drone. I use the subscribe method with the same ids specified in CHARACTERISTIC_MAP in npm-parrot-minidrone but 5 seconds later I lose the connection to the drone. If I don’t start this handshake I don’t lose the connection but nothing happens when I launch commands such as trim or takeoff. Am I missing something when I initialize the connection?

I have seen that several projects in javascript were made (https://github.com/fetherston/npm-parrot-minidrone or https://github.com/Mechazawa/minidrone-js) but they don’t seem compatible with mobiles.