Does google + iphone url (mgc: //) support any parameters?

I would like to run the google + iphone application and tell him to switch to β€œlayout” mode and give him the default text for the message. I can run it using the mgc: // url scheme, and have tried a bunch of url formats, but I can not get it to do anything except run. Has anyone found anything?

+4
source share
2 answers

This is old! Priyanka - there is no way to go to the application, but there is access to lib for iOS, which uses a browser but gives you good control: developers.google.com/+/mobile/ios/share

Take a look:

- (IBAction) didTapShare: (id)sender { id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog]; // This line will fill out the title, description, and thumbnail of the item // you're sharing based on the URL you included. [shareBuilder setURLToShare:[NSURL URLWithString:@"https://www.example.com/restaurant/sf/1234567/"]]; [shareBuilder setPrefillText:@"I made reservations!"] [shareBuilder open]; } 

You can also call to open the Google+ application, but you cannot pass the text to fill in - you can make a URL, but using gplus: in your call openURL UIApplication instead of http :. For instance. in Mobile Safari try:

 gplus://plus.google.com/share?url=http://developers.google.com/plus 
+4
source

You can open the Google Plus application on a specific page using a URL in the following format:

 gplus://plus.google.com/app/basic/+YourPageName/posts?source=appredir 

You can determine the redirect URL for a specific page by installing the user agent in Safari on your Mac (via the Design menu) in one of the Safari iOS options, and then visiting the Google Plus page. The page will open, but the crawler will also throw an error because the page tried to open the URL gplus:// , which did not know what to do. It will show you the url that gave the error.

Using this URL in a call to [[UIApplication sharedApplication] openURL:] , you open the Google+ application. Remember to wrap it when calling [[UIApplication sharedApplication] canOpenURL:] if the user does not have the Google+ application.

+1
source

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


All Articles