Skip to content

nativescript-bluetooth@3.0.0-beta.7 (and others) doesn't work with Playground #163

Description

@MpeStuntPilot

Latest changes to Playground has broken compatibility with nativescript-bluetooth.
Preview App point to incompatibility with nativescript-observable in crash log.
Target device is iPhone Xr with latest iOS ,
PC = Mac Book Pro with latest OS,
Browser = Firefox

Test App = generic / initial Playground test app with only "require ... nativescript-bluetooth" as shown below:
Commenting out the require .... nativescript-bluetooth line allows the app to function,
Including the require line causes it to immediately crash.

///////////////////
const frame = require("ui/frame");
const fromObject = require("tns-core-modules/data/observable").fromObject;
var bluetooth = require("~/nativescript-bluetooth@3.0.0-beta.7"); // import BLE nativescript library
var page;

function pageLoaded(args) {
page = args.object;
}
exports.pageLoaded = pageLoaded;
//////////////////

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions