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

[Bug]: Companion Device Manager does not recognize device after reboot #159

Open
2 tasks done
michaelwestergaardOoono opened this issue Apr 18, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@michaelwestergaardOoono

Is there an existing issue for this?

  • I have searched the existing issues

In which area is the issue?

Connectivity

In a specific sample?

CompanionDeviceManagerSample.kt

What happened?

I am having trouble to get the Companion Device Manager (CDM) sample project to work correctly. It functions correctly after installing the app and associating the device. However, after rebooting the phone (which could be triggered by OS updates or manual restarts), the CDM does not recognize the associated devices anymore. This seems to work on Samsung phones after reboot, but not on different manufactures.

It works on:

  • Samsung S20 (Android 13)
  • Samsung S23 (Android 13)
  • Samsung S23 Ultra (Android 14)

It does not work on

  • Google Pixel 6a (Android 13)
  • Nothing Phone 2 (Android 13)
  • OnePlus 8 pro (Android 13)

I expect that the CompanionDeviceSampleService.kt would trigger the onDeviceAppeared method, when the associated device is in proximity of the phone. This works after installing the app and associating the device, but it stops working when rebooting the phone.

Does anyone know how to solve this problem and make it work on all Android phone models?

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@michaelwestergaardOoono michaelwestergaardOoono added the bug Something isn't working label Apr 18, 2024
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

1 participant