swift - Google Plus sharing shows error of invalid address ios -


i have followed steps shown in below link:- google plus sharing link integrate

i have tried below code setting sign in details:-

        var signin = gppsignin.sharedinstance();         signin.shouldfetchgoogleplususer = true;         signin.clientid = kclientid;         signin.scopes = nsarray(array: ["https://www.googleapis.com/auth/plus.me"]) [anyobject]         signin.delegate = self         signin.trysilentauthentication() 

i have tried below code in appdelegate:-

        func application(application: uiapplication,         openurl url: nsurl,         sourceapplication: string?,         annotation: anyobject?) -> bool           {              return gppurlhandler.handleurl(url, sourceapplication: sourceapplication, annotation: annotation)           } 

i have set url schemes , url identifiers bundle id , same bundle id mentioned in google developer console.

but getting error displayed in screen shot:- enter image description here

please me resolve error. have tried possible ways.thanks in advance.

instead of:

signin.scopes = nsarray(array: ["https://www.googleapis.com/auth/plus.me"]) [anyobject] 

try (as in link):

signin.scopes = nsarray(array: ["profile"]) [anyobject] 

hope helps!


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -