简体   繁体   中英

Using Firebase with Google Nest on Android, authentication error

I am building a nest client. I started from the nestDK provided by Nest. I changed the code to use the "pin" authentication method. I successfully retrieve an "access token" using the nest pin workflow.

I updated the nestDK dependency on firebase to the latest version (available from the firebase website). I noticed that the Firebase.auth method was deprecated so I created my own authentication method. I use:

mFirebaseRef.authWithCustomToken(token, authHandler)

I get the following logs:

android logcat output (pastebin)

And that just goes on and on in a loop. Can someone help me understand what this means and how to rectify it?

I found that I was sitting behind some kind of firewall from my university. I connected my phone to another WiFi router without a firewall and the connection to the nest firebase worked fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM