Closed atkit closed 5 years ago
Thanks for the report. To clarify, you're seeing this error on Android as well? Mind sharing a code snippet of the JavaScript calling method?
Radar.on("events", (data) => trackRadarEvent("events", data));
Radar.on("location", (data) => trackRadarEvent("location", data));
Radar.on("error", (data) => trackRadarEvent("error", data));
Radar.trackOnce()
.then((result) => {
console.log(result);
})
.catch((err) => {
console.log(err);
});
startTracking was called before in previous session
@atkit We are able to reproduce locally and have a fix on the way. In short, the added main queue requirement
- (dispatch_queue_t)methodQueue {
return dispatch_get_main_queue();
}
is causing our callback to be called twice. We will add a guard against this in our next release, which should be very soon. Thanks for the report and patience.
Describe the bug trackOnceWithCompletionHandler is calling its callback more than once and it is not allowed to resolve Promise twise or more
To Reproduce
Expected behavior it needs to be called once
Screenshots
Metadata (please complete the following information):