gpt4 book ai didi

ios - google+ iphone 应用程序 url 方案 (mgc ://) support any parameters?

转载 作者:可可西里 更新时间:2023-11-01 05:38:48 27 4
gpt4 key购买 nike

我希望能够启动 google+ iphone 应用程序并告诉它进入“撰写”模式并为其提供一些消息的默认文本。我可以使用 mgc://url 方案启动它,并尝试了一堆 url 格式,但除了启动之外什么也做不了。有人找到什么了吗?

最佳答案

这是旧的! Priyanka - 无法访问应用,但有一个使用浏览器的 iOS 共享库,但为您提供了很好的控制权:developers.google.com/+/mobile/ios/分享

看看:

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

您也可以调用打开 Google+ 应用程序,但您不能传递文本来填充 - 不过您可以通过在 UIApplication openURL 调用中使用 gplus: 而不是 http: 来创建 URL。例如。在 Mobile Safari 中尝试:

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

关于ios - google+ iphone 应用程序 url 方案 (mgc ://) support any parameters?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8105373/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com