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

MacOS application asks for enabling location services on every start #2716

Open
mirekmal opened this issue Apr 13, 2024 · 6 comments
Open

MacOS application asks for enabling location services on every start #2716

mirekmal opened this issue Apr 13, 2024 · 6 comments
Assignees

Comments

@mirekmal
Copy link

Device model, version and app version

Model Name: Mac Pro (late 2013)
macOS Version: Monterey (12.7.4)
App Version: 2024.4
Safari Version: 17.4.1

Home Assistant Core Version
2024.4.3

Describe the bug
On every Mac boot, when application starts it enters the screen asking for allowing location services to create device_tracker for specific device. Appropriate permissions are already set in system preferences.

To Reproduce
Restart OS, wait for application autostart.

Expected behavior
Setting are properly stored and recognized at app start and no nag screen on every boot (regardless of permisions being enabled or disabled).

Screenshots
Screenshot 2024-04-13 at 09 13 10
Screenshot 2024-04-13 at 09 16 32

Additional context
This behavior appeared first after update to app version 2024.4, was not present in prior versions.

@mirekmal
Copy link
Author

New update available build 2024.4 (2024624) and app now even do not get so far. Several retries and the only screen I get is:
Screenshot 2024-04-15 at 19 07 55

@bgoncal
Copy link
Member

bgoncal commented Apr 22, 2024

I was not able to reproduce the issue, perhaps if you reinstall the app this does get fixed? What happens when you try to access your HA instance from safari browser?

@bgoncal bgoncal self-assigned this Apr 22, 2024
@mirekmal
Copy link
Author

Over past few days situation was very random; 50% of cases asking for permissions, 40% of cases blank screen, in 10% of cases app started as expected... so very random. I just reinstalled it and will observe if this changes situation.
Accessing HA from safari I have no issues whatsoever, 100% reliable.

@zacwest
Copy link
Member

zacwest commented Apr 22, 2024

This usually means your trust database on disk is broken in some way, which happens from time to time. Try running:

tccutil reset All io.robbie.homeassistant

in console, see if that helps. I think it might not be able to reset Location Services permissions, though -- that's behind SIP and not even disabling SIP allows you to reset it, e.g.: https://discussions.apple.com/thread/255386450?answerId=260018541022&sortBy=best#260018541022.

@geiseri
Copy link

geiseri commented May 14, 2024

I started seeing this after a clean install of Sonoma 14.4.1. I think they changed their location permissions, maybe even the API. That being said I did a Time Machine restore of my home directory so the Locations Services database from that link might actually be the issue. That being said the tccutil did not have any effect.

@mirekmal
Copy link
Author

I tried reinstall, restore etc, nothing helps (cannot restore older version of companion app, though). Nothing helps. In 90% of cases I get to blank screen and need to retry several times to getto the location services screen :-(

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

No branches or pull requests

4 participants