2

I am developing using ios obj-c. I am trying to get the access token using google GTMOAuth2 library. I could do the "work with nest" login but the redirect doesn't seem to work.I see nest animation and it keeps spinning. I have set the redirect to "h..p://localhost" on the Nest Developer Client settings.

How do i get the redirect correctly? Or How can i get the redirect to my App itself

2 Answers2

1

We've added sample code for iOS over here. To see how we got the access token from the redirect url have a look at NestWebViewAuthController. Let us know if you have any further questions!

Cheers, Raymond

0

It sounds like the WebView is timing out trying to load localhost since you like don't have a web server running. On iOS the best practice would be to insert a listener into the WebView that is called when your redirect URL is loaded. See Get notified about a page change in UIWebView

Community
  • 1
  • 1
David W. Keith
  • 2,246
  • 17
  • 20