Based on what I found on the errror message, this happens when a CBCentralManager instance is disposed. As startScanning is invoked every time the user opens up the popup UI a new instance was created each time. By adding this extra check to only reinitialize when the instance is nil I managed to fix the issue #10.
I'm not sure if there is any other conditions that would need for a reinitialisation of the CBCentralManager but couldn't reproduce any issues with this fix yet.
Based on what I found on the errror message, this happens when a CBCentralManager instance is disposed. As
startScanning
is invoked every time the user opens up the popup UI a new instance was created each time. By adding this extra check to only reinitialize when the instance is nil I managed to fix the issue #10.I'm not sure if there is any other conditions that would need for a reinitialisation of the CBCentralManager but couldn't reproduce any issues with this fix yet.