我希望能够启动谷歌+ 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]; }你也可以打电话打开Google+应用,但你不能传递文字填写 - 你可以通过使用gplus来做一个URL:在你的UIApplication openURL调用而不是http:。 例如在Mobile Safari中尝试:
gplus://plus.google.com/share?url=http://developers.google.com/plusThis 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更多推荐
发布评论