Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BonsoirDiscovery has null eventStream even after ready #56

Closed
RubenGarcia opened this issue Aug 28, 2023 · 5 comments
Closed

BonsoirDiscovery has null eventStream even after ready #56

RubenGarcia opened this issue Aug 28, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@RubenGarcia
Copy link

RubenGarcia commented Aug 28, 2023

Describe the bug
The code from
https://pub.dev/packages/bonsoir

BonsoirDiscovery discovery = BonsoirDiscovery(type: type);
await discovery.ready;
discovery.eventStream!.listen((event) {
  ...
}

is sometimes giving me a null eventStream on Android

To Reproduce
Steps to reproduce the behavior:
1 - Do not create any services
2 - Create a discovery
3 - check the value of eventStream after ready on android.

Expected behavior
eventStream is never null
Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Pixel 3
  • OS: Android 12
@RubenGarcia RubenGarcia added the bug Something isn't working label Aug 28, 2023
@Skyost
Copy link
Owner

Skyost commented Aug 28, 2023

Do you have an error stacktrace or something like that ?

@RubenGarcia
Copy link
Author

There is no stack trace, just eventStream is null, which it should not be.

@Skyost
Copy link
Owner

Skyost commented Aug 29, 2023

Yes, but I mean, if eventStream is null, it means that there is an error occurring at this line. So there must be a native stacktrace or something.

@RubenGarcia
Copy link
Author

I am using version: "2.2.0+1" so it may be connected to bugs indicated at #57

@Skyost
Copy link
Owner

Skyost commented Oct 6, 2023

Well, #57 occurs to users who are using a version > 2.0.0+1.

@Skyost Skyost closed this as completed in 51bfc4f Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants