Document best practices on iOS
peitschie opened this issue · 0 comments
peitschie commented
Spawned from discussion on #963
The best approaches found on Android are:
Use autoConnect and don't explicitly scan (i.e., let the OS schedule this itself)(in iOS, autoConnect is implemented purely in the JS layer, and is identical to approach 2)- Explicitly scan and then use connect
- (Maybe) for a non-bonded device, it's safe to just use connect without an explicit scan (to be confirmed)
Additional things worth documenting:
- Handling Bluetooth authorization
- Known quirks regarding isEnabled state
- Background processing vs Restore state
Documenting the known caveats and quirks would help implementors more effectively use this plugin.