谷歌+ iphone应用程序URL方案(mgc://)是否支持任何参数?(Does the google+ iphone app url scheme (mgc://) support any par

编程入门 行业动态 更新时间:2024-10-27 00:27:46
谷歌+ iphone应用程序URL方案(mgc://)是否支持任何参数?(Does the google+ iphone app url scheme (mgc://) support any parameters?)

我希望能够启动谷歌+ iPhone应用程序,并告诉它进入“撰写”模式,并为其提供一些默认的消息文本。 我可以使用mgc:// url方案启动它并尝试了一堆url格式但除了启动之外无法做任何事情。 有没有找到任何东西?

I'd like to be able to launch the google+ iphone app and tell it to go into "compose" mode and supply it with some default text for the message. I can get it to launch using the mgc:// url scheme and have tried a bunch of url formats but can't get it to do anything but launch. Has anyone found anything?

最满意答案

这是一个旧的! Priyanka - 没有办法转到应用程序 ,但有一个使用浏览器的iOS共享库,但为您提供了大量的控制:developers.google.com/+/mobile/ios/share

看一看:

- (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]; }

你也可以打电话打开Goog​​le+应用,但你不能传递文字填写 - 你可以通过使用gplus来做一个URL:在你的UIApplication openURL调用而不是http:。 例如在Mobile Safari中尝试:

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

This is an old one! Priyanka - there is no way of going to the app, but there is a sharing lib for iOS that uses the browser, but gives you a good amount of 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 out to open the Google+ app up, but you can't pass text to fill - you can do a URL though, by using gplus: in your UIApplication openURL call rather than http:. E.g. in Mobile Safari try:

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

更多推荐

本文发布于:2023-08-06 17:45:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1454933.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   参数   方案   mgc   URL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!