You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had faced this question and find out stream's timeout feature can solve our problem. I've just changed the line starting with _beaconEventsController.stream...... to this;
_beaconEventsController.stream.timeout(const Duration(milliseconds: xxx),
onTimeout: (_) {
// No beacons found for xxx ms
}).listen(
(data) {
// Didn't changed here
},
onDone: () {},
onError: (error) {
print("Error: $error");
});
I have a problem wiht listenToBeacons. That's my code:
this stream's listen doesnt send data when there are no beacon. I should get data even if there are no beacons. How can i do that?
The text was updated successfully, but these errors were encountered: