Skip to content

App forced close #1

Open
Open
@fcantarutti

Description

@fcantarutti

Hi,

I have a problem. Probably I am using the plugin wrong.
Lets say I know the Device ID and I call:
antplus.subscribeHR(DEVICE_ID, function(response) .... It does work.
I can do antplus.searchDevices('HEARTRATE', function(device) ... and also works

BUT, If I do searchDevices and inside the success function I call lets say: subscribeHR it abruptly close the app.

I try doing it by calling a function instead of putting the method inside the search device and also to make sure I do it just once, just in case it was doing and infinite loop.

How do you subcribe to the devices after you search?

This It what make the error happend:

antplus.searchDevices('HEARTRATE', function(device){
   antplus.subscribeHR(device.antDeviceNumber, success, failure);
}, failure);

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions