Google Classroom iOS Share Button?

2019-09-11 15:56发布

问题:

Is there an API to add a google classroom share button in iOS? I only see a Javascript example on the guides, and the iOS API doesn't say anything about a share button.

Thanks!

回答1:

There's no iOS SDK, but you can use URLs of the form https://classroom.google.com/share?url=https://foo.com/ to share content. (Using the system browser might work better than a WebView because the user is more likely to be logged in there.)