pjjjv / google-signin-dart

Other
1 stars 0 forks source link

Cant make it work. Need an update? #1

Open Vloz opened 9 years ago

Vloz commented 9 years ago

Hi and thx for this wrap.

I cant make it work, i tried to set it the proper way with pub but it seems outdatted (for polymer and paper), so i tried to had the file directly into my project. But the dart2js screw the success event when i bind it in html:

 \<google-signin on-google-signin-success="{{onSignInSuccess}}" clientId="...">

it send an UnimplementedError: structured clone of RegExp, (it work in dartium)

I have no error in dart2js when i bind it with dart:

ready(){
    ($['signinBut'] as GoogleSignin).on['google-signin-success'].listen((e){
      print((e as CustomEvent).detail);
    });

}

But then, i dunno how am i suppose to get the success 'result'... It returns me a CustomEvent with null detail... :'(

Any help? Any update?

pjjjv commented 9 years ago

Hi Anthony,

I'm so sorry I haven't been able to reply yet. I'm on holiday almost the entire month of May, and I was out of reach in South-East Asia till yesterday. To run your code - I am still on holiday - I'll get back to you in a week and a half, but please send me details/errors meanwhile... so I can ask around.

Could you check how I am using it on https://github.com/pjjjv/Akepot/blob/master/lib/login_screen.html ? Works in dartium and chromium (after dart2js) for me.

One thing I see different is that I haven't tried on-google-signin-success yet, but am using google-signin-aware.

These errors are all new to me, but please check that the file you copied is in the right place and uses the right version of polymer. Could you let me know why it's not possible for you to include via pub? If it's just that I have to update the versions, then yeah I am still at 0.5 or so for Polymer.

You're the first user of this component.

Best regards,

Op maandag 4 mei 2015 heeft Anthony Bobenrieth notifications@github.com het volgende geschreven:

Hi and thx for this wrap.

I cant make it work, i tried to set it the proper way with pub but it seems outdatted (for polymer and paper), so i tried to had the file directly into my project. But the dart2js screw the success event when i bind it in html:

it send an _UnimplementedError: structured clone of RegExp_, (it work in dartium) I have no error in dart2js when i bind it with dart: ready(){ ($['signinBut'] as GoogleSignin).on['google-signin-success'].listen((e){ print((e as CustomEvent).detail); }); } But then, i dunno how am i suppose to get the success 'result'... It returns me a CustomEvent with null detail... :'( Any help? Any update? — Reply to this email directly or view it on GitHub https://github.com/pjjjv/google-signin-dart/issues/1.
Vloz commented 9 years ago

Hi pjjjv an thank you for your answer,

unfortunately i dropped this component for the official googleapis_auth library (bind to a polymer button) weeks ago, i was afraid that it would be more difficult to use but it's actually pretty easy, thank you anyway and sorry for wasting you time.

Regards.