Вход в Google с помощью плагина cordova googleplus
I want google login in cordova app for android platform by using **cordova googleplus plugin** so I have made an android app on console developers google on google account and integrate it with my cordova app but when i run my cordova app on emulator i am facing error with code:8 and when i run on android phone the error becomes error:12501.So how to resolve it to run google login on my cordova app?
Что я уже пробовал:
Я пытаюсь использовать плагин cordova googleplus для платформы android в своем приложении cordova
Вот мой index.js код:
bindEvents: function () { document.getElementById('loginBtn').addEventListener('click', function () { window.plugins.googleplus.login( { 'scopes': '', // optional, space-separated list of scopes, If not included or empty, defaults to `profile` and `email`. 'webClientId': '', // optional clientId of your Web application from Credentials settings of your project - On Android, this MUST be included to get an idToken. On iOS, it is not required. 'offline': true, // optional, but requires the webClientId - if set to true the plugin will also return a serverAuthCode, which can be used to grant offline access to a non-Google server }, function (obj) { alert(JSON.stringify(obj)); // do something useful instead of alerting }, function (msg) { alert("error"); alert(msg); } ); }) document.addEventListener('deviceready', deviceReady, false);