windows phone 8 - Google.apis.Oauth2.v2 Crash -


i using google apis integrate google in wp8 app. using sample.

usercredential credential = await googlewebauthorizationbroker.authorizeasync(new clientsecrets                 {                     clientid = app.googleclientid,                     clientsecret = app.googleclientsecret                 }, new[] { oauth2service.scope.userinfoprofile }, "user", cancellationtoken.none); 

above code internally invokes browser , login , should return next line.

but found crashes, within browser.

exception is:

microsoft.phone.controls.webbrowsernavigationexception: exception of type 'microsoft.phone.controls.webbrowsernavigationexception' thrown.    @ microsoft.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)    @ microsoft.runtime.compilerservices.taskawaiter.handlenonsuccess(task task)    @ microsoft.runtime.compilerservices.taskawaiter.validateend(task task)    @ microsoft.runtime.compilerservices.configuredtaskawaitable`1.configuredtaskawaiter.getresult()    @ google.apis.auth.oauth2.authorizationcodeinstalledapp.<authorizeasync>d__0.movenext() --- end of stack trace previous location exception thrown ---    @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)    @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)    @ system.runtime.compilerservices.configuredtaskawaitable`1.configuredtaskawaiter.getresult()    @ google.apis.auth.oauth2.googlewebauthorizationbroker.<authorizeasynccore>d__f.movenext() --- end of stack trace previous location exception thrown ---    @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)    @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)    @ system.runtime.compilerservices.configuredtaskawaitable`1.configuredtaskawaiter.getresult()    @ google.apis.auth.oauth2.googlewebauthorizationbroker.<authorizeasync>d__1.movenext() --- end of stack trace previous location exception thrown ---    @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)    @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)    @ system.runtime.compilerservices.taskawaiter`1.getresult()    @ socialnetworking.gui.googleloginpage.<authenticate>d__6.movenext() 

issue logged: https://groups.google.com/forum/#!topic/adsense-api/p54fljtuwve

is there solution using google.apis library.

thanks

solved adding google + permission in app on dev site.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -