简体   繁体   English

如何将重复规则用于 Google 日历深层链接 IOS

[英]How to use Recurrence Rule for Google Calendar deep link IOS

I have an mobile web app targeting IOS that does two potential things:我有一个针对 IOS 的移动网络应用程序,它可以做两个潜在的事情:

If the user does NOT have the google calendar app installed: We open a link to add an event to the web version of google calendar.如果用户没有安装谷歌日历应用程序:我们打开一个链接,将事件添加到谷歌日历的网络版本。

https://calendar.google.com/calendar/u/0/r/eventedit?text=event+title&dates=20210718T080010/20210718T083010&ctz=America/Mexico_City&details=book+details&recur=RRULE%3AFREQ%3DWEEKLY%3BCOUNT%3D11%3BBYDAY%3DSU%2CMO%2CTU%2CWE%2CTH%2CFR%2CSA%3B

And if the user DOES have the google calendar app installed, we open a DEEP LINK to add the event directly to their google calendar app.如果用户确实安装了谷歌日历应用程序,我们会打开一个深度链接将事件直接添加到他们的谷歌日历应用程序中。

EG例如

com.google.calendar://?action=create&text=event+title&dates=20210718T080010/20210718T083010&ctz=America/Mexico_City&details=book+details&recur=RRULE%3AFREQ%3DWEEKLY%3BCOUNT%3D11%3BBYDAY%3DSU%2CMO%2CTU%2CWE%2CTH%2CFR%2CSA%3B

And testing on Safari, that all works EXCEPT - the recurrence rule doesn't seem to work for the deep link!并在 Safari 上进行测试,除了 - 重复规则似乎对深层链接不起作用! The recurring section is just empty.重复部分只是空的。

(The recurrence rule is this part recur=RRULE%3AFREQ%3DWEEKLY%3BCOUNT%3D11%3BBYDAY%3DSU%2CMO%2CTU%2CWE%2CTH%2CFR%2CSA%3B ) (重复规则是这部分recur=RRULE%3AFREQ%3DWEEKLY%3BCOUNT%3D11%3BBYDAY%3DSU%2CMO%2CTU%2CWE%2CTH%2CFR%2CSA%3B

Am I doing something wrong?难道我做错了什么?


...Further Notes if you're curious: ...如果您好奇,请进一步说明:

1: The recurrence rules are a little hard to read because they are all websafe, but they look like this 1:重复规则有点难读,因为它们都是websafe,但它们看起来像这样

RRULE:FREQ=DAILY;INTERVAL=5;UNTIL=20210701T160000Zs

2: I would just work around this problem by opening the web link in all situations, BUT if the google calendar app is installed it intercepts the web links, and then just takes you to the main calendar and does nothing 😭 2:通过在所有情况下打开网络链接来解决这个问题,但如果安装了谷歌日历应用程序,它会拦截网络链接,然后将您带到主日历而不做任何事情😭

3: You should be able to open the above links on your ios device and see the behavior that I'm talking about 3:您应该能够在您的 ios 设备上打开上述链接并查看我所说的行为

在进一步研究中,似乎 Google 日历应用程序根本不支持深层链接的重复规则:(

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

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