t4qjXH8N / ioBroker.google-sharedlocations

An ioBroker-adapter for retrieving shared locations from Google
MIT License
60 stars 10 forks source link

Constant "security notifications" from Google #17

Closed Xyolyp closed 6 years ago

Xyolyp commented 6 years ago

I'm constantly getting security notifications from Google because the instance performs a login every time the polling interval has passed. I would like to see an enhancement like keeping the logged in session active as long as the instance is running. That way I would only get a notification when the instance is started and not every ten minutes.

t4qjXH8N commented 6 years ago

Why do you think that the instance performs a login every time the polling interval has passed? Did you get that information from Google?

Usually the adapter issues a new login only if there went something wrong when polling the locations. Have a look at the code, maybe there is a bug or something, but the normal behaviour is keeping the connection open.

You could try to "train" Google by telling Google that this was you.

Xyolyp commented 6 years ago

I get the notification exactly every ten minutes which is the polling interval. That's why I assumed the adapter doesn't keep the session. I will have a look at the code especially because I just noticed that the status goes red exactly every ten minutes.

t4qjXH8N commented 6 years ago

If it turns to red you are right, the adapter tries to do a new login. Maybe ten minutes is too long? Maybe Google terminates the session due to inactivity.

Xyolyp commented 6 years ago

Google seems to have gotten it by now. I had to confirm it like a million times and now it doesn't ask anymore exept when I manually click the "get data now" button.