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

Weak scanback call losing reference #118

Open
johnnyzen opened this issue Apr 28, 2022 · 0 comments
Open

Weak scanback call losing reference #118

johnnyzen opened this issue Apr 28, 2022 · 0 comments

Comments

@johnnyzen
Copy link

johnnyzen commented Apr 28, 2022

Version: no.nordicsemi.android.support.v18:scanner:1.6.0
Samsung Flip 3 - Android 12

Hi all,

I am noticing:

final ScanCallback userCallback = weakScanCallback.get(); in UserScanCallbackWrapper

is returning null, preventing callbacks to my fragment (I guess garbage collection is occuring)

This seems random, and not related for example when device goes to sleep.

Testing with app in foreground with no other processing.

Thanks for the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant