I don't seem to find a GoogleService-Info.plist file. In which folder should it be?
Since we talk about iOS I believe GoogleService-Info.plist file is missing and this is a problem. Please take a look on this EddyVerbruggen/cordova-plugin-googleplus
To get your iOS REVERSED_CLIENT_ID, generate a configuration file here. This GoogleService-Info.plist file contains the REVERSED_CLIENT_ID you'll need during installation. This value is only needed for iOS.
The REVERSED_CLIENT_ID is also known as the "iOS URL Scheme" on the Developer's Console.
Login on iOS takes the user to a SafariViewController through the Google SDK, instead of the separate Safari browser.
To generate a configuration file go to: https://developers.google.com/mobile/add?platform=ios
Locate this file in root of your iOS project
In my case the GoogleService-Info.plist file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>18643434937-j6ofvkktk1uklqjv61ecr75f1llqki0f.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.18643434937-j6ofvkktk1uklqjv61ecr75f1llqki0f</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.app.client</string>
<key>PROJECT_ID</key>
<string>app-c6c82</string>
<key>IS_ADS_ENABLED</key>
<false/>
<key>IS_ANALYTICS_ENABLED</key>
<false/>
<key>IS_APPINVITE_ENABLED</key>
<false/>
<key>IS_GCM_ENABLED</key>
<false/>
<key>IS_SIGNIN_ENABLED</key>
<true/>
<key>GOOGLE_APP_ID</key>
<string>1:68743434937:ios:b03bcd3b3f571a56</string>
</dict>
</plist>
For Android google-services.json:
Go to: https://developers.google.com/mobile/add?platform=android
and generate it there.
It should look like:
{
"project_info": {
"project_number": "68643434935",
"project_id": "myapp-c6c82"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:68643434935:android:71bc3a4035ab9002",
"android_client_info": {
"package_name": "com.agan.armoa"
}
},
"oauth_client": [
{
"client_id": "68643434935-mqm5s8lubfr5j5s3bj62eigbod0h083s.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.agan.armoa",
"certificate_hash": "759A66458E30A70628F2E6A66C46240E21676B72"
}
},
{
"client_id": "68643434935-bc48465luu0r77tufpf4fumv0bd5pta2.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "68643434935-gpdj67581deilm3refkgobuvneceisqt.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDB6g1-nMbZ9aZkic2dCz8QrcqHfCSDrsw"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:68643434935:android:b03bcd3b3f571a56",
"android_client_info": {
"package_name": "com.myapp.client"
}
},
"oauth_client": [
{
"client_id": "68643434935-25ciu2gccfv70m08sc7c4fr3v0gqe89m.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.myapp.client",
"certificate_hash": "E90A75A9AA4470337AE5ECD87C3416DDB1109BE1"
}
},
{
"client_id": "68643434935-bc48465luu0r77tufpf4fumv0bd5pta2.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "68643434935-gpdj67581deilm3refkgobuvneceisqt.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDB6g1-nMbZ9aZkic2dCz8QrcqHfCSDrsw"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
}
],
"configuration_version": "1"
}
[EDIT 2]
About your error:
keytool -exportcert -list -v \ -alias project -keystore ~/.android/debug.keystore I get this error: error de herramienta de claves: java.lang.Exception: El archivo de almacén de claves no existe: /Users/toni/.android/debug.keystore java.lang.Exception: El archivo de almacén de claves no existe: /Users/toni/.android/debug.keystore
Try to run:
keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"
to generate ~/.android/debug.keystore
Also take a look: https://developer.android.com/studio/publish/index.html#debugmode
[EDIT 3]
error 10 means:
public static final int DEVELOPER_ERROR
The application is misconfigured. This error is not recoverable and
will be treated as fatal. The developer should look at the logs after
this to determine more actionable information.
Constant Value: 10
See DOCS and similar error solution: Error: Status{statusCode=DEVELOPER_ERROR, resolution=null}