EddyVerbruggen / cordova-plugin-googleplus

:heavy_plus_sign: Cordova plugin to login with Google Sign-In on iOS and Android
566 stars 625 forks source link

cordova-plugin-googleplus integration with Intel XDK #42

Open siddmegadeth opened 9 years ago

siddmegadeth commented 9 years ago

Hi,

I followed the instructions to setup cordova-plugins. I have added the git from Intel XDK 3rd party plugins. As per Intel XDK these 3rd party plugins will not work in Emulator and In App Preview.

After doing the google workflow as u mentioned. I used your code and placed it in my function which is being called on a event.

all event handlers are initialized/added after onload/deviceready.

I do not see any popup opening while i compile my code using android cross wallk. after build options are failing.

function init() {

    intel.xdk.device.hideSplashScreen();
    alert("Device Ready");
    log("Hiding Splash Screen");

     //Add Event Listener For Login Pages And Registration Pages

    document.getElementById("googleConnect").addEventListener("click",function()
    {
       oAuthGoogle();
    });

    document.getElementById("googleSign").addEventListener("click",function()
    {
     oAuthGoogle();
    });

window.addEventListener("intel.xdk.device.ready",init);

//Globally Object Available log = console.log.bind(console); error = console.error.bind(console); globalContext ={};

function oAuthGoogle() {

window.plugins.googleplus.login( {

},
function (obj) 
{
  alert(JSON.stringify(obj)); // do something useful instead of alerting
},
function (msg) 
{
  alert('error: ' + msg);
}

);

}

Please help me out as i need to integrate this.

Looking forward to your response.

EddyVerbruggen commented 9 years ago

I'm not an Intel SDK user so you may want to ask your question on their forums. Btw, do any other 3rd party plugins work for you?

siddmegadeth commented 9 years ago

Kindly have a look at the following plugin. i wanted to use yours as it looked more promising but since i cannot get it to work i got this.

https://github.com/krisrak/jquery-cordova-oauth2

siddmegadeth commented 9 years ago

Hi,

Kindly have a look at the following plugin. i wanted to use yours as it looked more promising but since i cannot get it to work i got this.

https://github.com/krisrak/jquery-cordova-oauth2

Regards, Siddharth

On Thu, Feb 19, 2015 at 11:10 PM, Eddy Verbruggen notifications@github.com wrote:

I'm not an Intel SDK user so you may want to ask your question on their forums. Btw, do any other 3rd party plugins work for you?

— Reply to this email directly or view it on GitHub https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/42#issuecomment-75098799 .

jgiovanni commented 9 years ago

I'm using intel XDK with this plugin and it works just fine, there is a conflict with the .plist CFBundleURLTypes when using the facebook connect plugin, but that is a cordova build issue.

alvaro562003 commented 9 years ago

Hello giovanniorigins, did you use the emulator and the intel "app preview" to test your app ? As far i know, those 2 tools can not test "non-core" cordova apis. Regards

jgiovanni commented 9 years ago

I built the iOS app using Intel XDK's build service.