cordova-plugin-googleplus
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"name": "cordova-plugin-googleplus", | ||
@@ -28,2 +28,2 @@ "cordova_name": "Google+", | ||
] | ||
} | ||
} |
@@ -30,3 +30,3 @@ # Google+ Cordova/PhoneGap Plugin | ||
iOS | ||
<img src="https://raw.githubusercontent.com/EddyVerbruggen/cordova-plugin-googleplus/master/screenshots/iOS1.png" width="235" height="417"/> | ||
@@ -40,3 +40,3 @@ <img src="https://raw.githubusercontent.com/EddyVerbruggen/cordova-plugin-googleplus/master/screenshots/iOS2.png" width="235" height="417"/> | ||
### iOS | ||
To get your iOS API key, follow Step 1 of [this guide](https://developers.google.com/+/quickstart/ios) | ||
To get your iOS API key, follow Step 1 of [this guide](https://developers.google.com/+/mobile/ios/getting-started) | ||
[get a configuration file here](https://developers.google.com/mobile/add?platform=ios&cntapi=signin). | ||
@@ -103,2 +103,4 @@ This `GoogleService-Info.plist` file contains the `REVERSED_CLIENT_ID` you'll need during installation. | ||
'scopes': '... ', // optional space-separated list of scopes, the default is sufficient for login and basic profile info | ||
'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) | ||
'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 | ||
// 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) | ||
@@ -144,3 +146,6 @@ }, | ||
window.plugins.googleplus.trySilentLogin( | ||
{}, | ||
{ | ||
'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) | ||
'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 | ||
}, | ||
function (obj) { | ||
@@ -147,0 +152,0 @@ alert(JSON.stringify(obj)); // do something useful instead of alerting |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21454113
213