Google+ Invite - iOS SDK / API. Is there a practical way to invite Google Plus users like Facebook.

Is there a personal or somewhat practical way to invite Google + friends with the G + iOS SDK / API? Facebook provides this out of the box, and you might think it would be available to Google? Any help would be greatly appreciated. Thanks!

+6
source share
1 answer

Edit: The Google+ SDK is now deprecated, but you can get a similar invitation feature from Firebase Invites , which also works with Google contacts.

Absolutely, interactive messages you probably need: https://developers.google.com/+/mobile/ios/share#adding_interactive_posts

You can add a β€œJoin” message to the action, which can be configured to go directly to your mobile application or go to the URL. Unfortunately, in iOS there is no way to pre-populate the recipient list at this time (you can on web and Android!), But the user still has the option to select any of the circles as part of the shared resource. You can set pre-filled text (which the user has the ability to edit).

Interactive messages contain 2 components, a β€œcontent” link, which is usually informational, and a call to action button, which is usually used to take some action.

id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog]; [shareBuilder setURLToShare:YOUR_CONTENT_LINK]; [shareBuilder setPrefillText:@"Try this amazing app with me!"] [shareBuilder setContentDeepLinkID:@"turns-on-app-deeplinks-and-passes-this-value"]; [shareBuilder setCallToActionButtonWithLabel:@"JOIN" URL:YOUR_JOIN_LINK deepLinkID:@"turns-on-cta-app-deeplinks"]; [shareBuilder open]; 
+8
source

Source: https://habr.com/ru/post/945953/


All Articles