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

Background Usage #12

Open
LeviWilliams opened this issue Jun 17, 2020 · 4 comments
Open

Background Usage #12

LeviWilliams opened this issue Jun 17, 2020 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@LeviWilliams
Copy link
Contributor

This is more of a feature request/question. I've been looking into using this library to still detect devices while running in the background. Obviously I could register a headless component for android but this does not work in iOS. We would have to write a native iOS bridge to stay cross-platform and support this running in the background.

I do not have much experience in this and thus I'm wondering if this is even a possible addition to this library. Or if it's even possible to do some other way? I know native apps use nearby messages in the background normally. Would love to hear your thoughts.

@mrousavy
Copy link
Owner

Yes, this is certainly possible! (as far as the native implementation goes at least)

See the official google nearby docs, they have a part specific for background tasks.

I'm not planning on adding this myself in the near future - it should not be a lot of code though so if you do, create a PR and I'll review & merge it. :)

@mrousavy mrousavy added enhancement New feature or request help wanted Extra attention is needed labels Jun 19, 2020
@mrousavy
Copy link
Owner

@LeviWilliams The Google Nearby Messages documentation has an entry for background operation here, so you could try to set the background mode in my swift code to true yourself and experiment with it.

If you got something working, let me know, so we can implement this feature.

@zaptrem
Copy link

zaptrem commented Jul 14, 2020

+1 on this. Don't currently have an Android dev/testing workflow set up to work on it, but I'll follow this with interest!

@LeviWilliams
Copy link
Contributor Author

I also don't have much of a workflow set up, I've messed around with the Swift a bit but nothing substantial yet. If anyone has more experience dealing with this I'd definitely help test the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants