基本上你可以做到這一點。
見Apple Inter-App Communication章:使用URL方案與應用程序進行通信
谷歌似乎支持它,我在他們的Info.plist中發現這一點:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>com.google.sso.900820440409-fbmgl9p4k9hlmkq01gjmjs2aiirbjaca</string>
</array>
</dict>
<dict>
<key>CFBundleURLName</key>
<string>${BUNDLE_IDENTIFIER}</string>
<key>CFBundleURLSchemes</key>
<array>
<string>googleclassroom</string>
</array>
</dict>
</array>
所以他們有一個網址 - 方案註冊。我對Google課堂應用不熟悉。所以我不知道,你可以分享什麼類型的數據。你可以在互聯網上找到它。但你應該能夠與這些信息共享數據。
如何獲得的Info.plist內容:
- 下載應用程序在Mac上的iTunes。
- 使用終端導航到下載位置。
- 將文件重命名爲.zip(mv App.ipa App.zip)
- 通過雙擊或終端提取App.zip文件。
- 複製的Info.plist到某個位置(CP應用程序/負載/ App.app/Info.plist的〜/桌面)
- 見的Info.plist
我希望這可以幫助你。