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

Remove duplicates from myIds #2

Open
iNathanZ opened this issue Jul 13, 2022 · 5 comments
Open

Remove duplicates from myIds #2

iNathanZ opened this issue Jul 13, 2022 · 5 comments

Comments

@iNathanZ
Copy link

Hello,
I would like to remove keys duplicates from myIds, in order to only update the timeInterval when I discover the same device

@mash
Copy link
Owner

mash commented Jul 14, 2022

Sounds like you should make the Ids type a map instead of a list. It's defined as typealias Ids = [[UserId:TimeInterval]] currently.

@iNathanZ
Copy link
Author

Yep, that's what i did.
I updated some extensions functions you made also to make it work but my app crashes at launching here :
image
Debug navigator tells me that the cast of type Array to Dictionary fails, but i'm not event supposed to use arrays now

@mash
Copy link
Owner

mash commented Jul 16, 2022

Maybe you're loading an old file generated before your change? Try removing the app from the phone or simulator and start over.

@iNathanZ
Copy link
Author

Ok its fine, it was smth else
But now it seems that the .stop() method doesnt rellay work. Any idea ?
When I BProximity.stop() my device is still visible by others and i still can see others devices

@iNathanZ
Copy link
Author

And other issue: I would like to send a notification to a specific device, depending its userID, how can i do that ?

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

2 participants