Reputation: 2818
I'm adding sharing on google+ within my app.
I've followed the tutorial on the developers platform.
The sign-in method is working. It opens the google+ app, and then after log in, it goes back to my app.
But I can't manage to make the share working as I want.
If I use
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog]
//and
[shareBuilder open];
it opens safari, and after sharing, returns to the last website visited on safari.
But when trying to use
id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
instead of the normal shareDialog
, the view appears after calling [shareBuilder open]
, but immediately disappear after being shown. No time to see anything on it.
Ideally, I want to use the native share dialog and pre-fill the text (which by the way doesn't work with the normal share dialog), but it's ok too if I manage to open google+ app or website, and then go back to my app.
Any help appreciated.
Upvotes: 2
Views: 653
Reputation: 14677
You need to also ebable the Google+ Api in the Google developer console
Upvotes: 2