You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2023. It is now read-only.
'scopes':'... ', // optional space-separated list of scopes, the default is sufficient for login and basic profile info
101
101
'offline':true, // optional and required for Android only - if set to true the plugin will also return the OAuth access token, that can be used to sign in to some third party services that don't accept a Cross-client identity token (ex. Firebase)
102
+
'webApiKey':'api of web app', // optional API key of your Web application from Credentials settings of your project - if you set it the returned idToken will allow sign in to services like Azure Mobile Services
102
103
// there is no API key for Android; you app is wired to the Google+ API by listing your package name in the google dev console and signing your apk (which you have done in chapter 4)
103
104
},
104
105
function (obj) {
@@ -140,7 +141,8 @@ The code is exactly the same a `login`, except for the function name.
140
141
```javascript
141
142
window.plugins.googleplus.trySilentLogin(
142
143
{
143
-
'offline':true// optional and required for Android only - if set to true the plugin will also return the OAuth access token, that can be used to sign in to some third party services that don't accept a Cross-client identity token (ex. Firebase)
144
+
'offline':true, // optional and required for Android only - if set to true the plugin will also return the OAuth access token, that can be used to sign in to some third party services that don't accept a Cross-client identity token (ex. Firebase)
145
+
'webApiKey':'api of web app'// optional API key of your Web application from Credentials settings of your project - if you set it the returned idToken will allow sign in to services like Azure Mobile Services
144
146
},
145
147
function (obj) {
146
148
alert(JSON.stringify(obj)); // do something useful instead of alerting
0 commit comments