0

Is there a way to setup State Preservation and Restoration for ios using CoreBluetooth in Nativescript? I'm using the nativescript-bluetooth plugin.

From what I understand I will have to modify the actual plugin's code to be able to implement State Preservation and Restoration based on what I see here

I want to be able to reconnect to a BLE device in case my app is suspended while in background. Is there any easier way to do this?

DeC
  • 2,226
  • 22
  • 42
Dimitris
  • 53
  • 1
  • 5
  • Refer the [plugin development docs](https://docs.nativescript.org/plugins/building-plugins), you may fork the plugin repo and build your own version over it. Also you must be familiar with [Marshalling iOS native code to JS](https://docs.nativescript.org/core-concepts/ios-runtime/Marshalling-Overview) – Manoj Nov 13 '19 at 05:53
  • @Manoj thanks there is a beta version of nativescript-bluetooth apparently that handles the case – Dimitris Nov 15 '19 at 01:32

0 Answers0