简体   繁体   English

iOS中的Google日历应用网址方案

[英]Google Calendar app URL Scheme in iOS

I want to force open google calendar app instead on native iOS calendar app on iOS from cordova/phonegap application . 我想从cordova / phonegap应用程序强制在iOS上的本机iOS日历应用上打开google日历应用。 I reseached on internet but didn't find the url scheme to open google calendar app on iOS. 我在互联网上进行了研究,但没有找到在iOS上打开Goog​​le日历应用程序的网址方案。

I have already tried cordova calendar( https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin ) plugin but it only opens native iOS calendar app and don't have any option to open google calendar instead. 我已经尝试过科尔多瓦日历( https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin )插件,但它仅打开本机iOS日历应用程序,没有任何选择来打开Goog​​le日历。

App Availability( https://github.com/ohh2ahh/AppAvailability ) plugin can open app installed on iOS and it requires registered url scheme for the iOS app which i don't know. 应用程序可用性( https://github.com/ohh2ahh/AppAvailability )插件可以打开安装在iOS上的应用程序,它需要iOS应用程序的注册网址方案,我不知道。 I try to pass package identifier(com.google.calendar) of google calendar app instead of url scheme but it didn't help. 我尝试传递Google日历应用程序的程序包标识符(com.google.calendar)而不是url方案,但这没有帮助。 So it only requires url scheme. 因此,它仅需要url方案。

Can anyone guide me how to find url scheme of google calendar app on iOS? 谁能指导我如何在iOS上找到Google日历应用的网址方案?

Download Google Calendar on iTunes from your computer. 从计算机上的iTunes下载Google日历。 Rename the .ipa to .zip and extract it. .ipa重命名为.zip并将其解压缩。 There's " Google Calendar.app " in Payload/ , left click to "Show Package Contents" and look for Info.plist . Payload/有“ Google Calendar.app ”,单击鼠标左键以显示“包内容”,然后查找Info.plist You'll get the configurations including URL scheme, as in v1.3.1: 如v1.3.1所示,您将获得包括URL方案在内的配置:

  • vnd.google.calendar vnd.google.calendar
  • com.google.calendar com.google.calendar
  • comgooglecalendar comgooglecalendar
  • googlecalendar Google日历

However, there seems to be no public documentation for this, so use with caution. 但是,似乎没有公开文档,因此请谨慎使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM