Using GoogleAPIClient with TvOS

265 views
Skip to first unread message

Karl Rivest Harnois

unread,
Jan 17, 2017, 11:36:15 AM1/17/17
to Google APIs Client Library for Objective-C
I want to use GoogleAPIClient in an apple tv app. I have access to GooglAPIClient via cocoapods but not GTMOAuth2 (which is only accessible for iOS). Is it possible to authenticate the user without GTMOAuth2? If so how can I do that?


Thanks!

Thomas Van Lenten

unread,
Jan 18, 2017, 12:57:03 PM1/18/17
to Google APIs Client Library for Objective-C

Since tvOS doesn't have a webview, gtm-oauth2 hasn't directly supported it.  You could use the non UI classes if you get the authorization info over to the box some other way.  gtm-oauth2 is also being replaced (https://github.com/google/gtm-oauth2#warning-deprecation-notice), https://github.com/google/GTMAppAuth is a new library by the signin/identity teams at google and that will work, and includes some tvOS examples.  So I'd suggest looking at that.

TVL
Reply all
Reply to author
Forward
0 new messages