How do you manage BLE notification?

Here an example