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

最佳答案

这是旧的! 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+应用程序的权限,但不能传递文本以进行填充-尽管可以通过在UIApplication openURL调用中使用gplus:而不是http:来创建URL。例如。在Mobile Safari中尝试:
gplus://plus.google.com/share?url=http://developers.google.com/plus

07-27 18:53