How can I accurately determine the sync status?

40 views
Skip to first unread message

Vladimir Yankovich

unread,
Jul 13, 2021, 8:53:10 AM7/13/21
to Chromium Extensions
Good day. I am developing an extension. And I want to implement automatic creation of a user account and pass-through authorization based on his Google account, with which he entered Google Chrome.

I managed to determine if the user is logged in. Also, with the help of additional requests, I managed to determine whether he turned on the synchronization in Chrome. But I just can't find a way to automatically get information that the user is logged out of the Google Chrome account. I was hoping for the onSignInChanged event in the сhrome.identity resolution, but it is silent the moment I disable sync.

Maybe I'm doing something wrong? Maybe someone has some ideas?

Once again, I will describe the ideal solution that I am looking for: I have a listener who instantly receives notifications if: 1. the user is logged into the Google Chrome account; 2. the user is logged out of the Google Chrome account; 3. The user has changed the sync status of Google Chrome.
Reply all
Reply to author
Forward
0 new messages