Comments (11)
Can you share the settings you are using for the button?
from add-to-calendar-button.
Hi @jekuer
please find below snapshot we added in react template,
placeholder variables values please ignore for now. as its working for android but for IOS apple calendar doest open.
`<add-to-calendar-button
class="calendarButton"
name={selectedEvent.title}
description={selectedEvent.description}
startDate={
selectedEvent.start}
endDate={
selectedEvent.end}
startTime={
selectedEvent.start}
endTime={
selectedEvent.end}
location={selectedEvent.classroom}
options="'Apple','Google','iCal','Microsoft365'"
timeZone="GMT" //Europe/London
trigger="click"
buttonStyle="round"
size="4"
inline
listStyle="modal"
iCalFileName="TimeTable-Event"
lightMode={
localStorage.getItem("theme") === "dark" ? "dark" : ""
}
styleLight="--btn-background: transparent;--btn-background-hover: transparent; --btn-text: #000;--btn-shadow: transparent;--btn-shadow-hover: transparent;--btn-border: none !important; --font: Roboto;--base-font-size-l: 12px;--base-font-size-m: 12px;--base-font-size-s: 12px;font-weight: normal"
styleDark="--btn-background: transparent;--btn-background-hover: transparent; --btn-text: #fff;--btn-shadow: transparent;--btn-shadow-hover: transparent;--btn-border: none !important; --font: Roboto;--base-font-size-l: 12px;--base-font-size-m: 12px;--base-font-size-s: 12px;font-weight: normal"
`
from add-to-calendar-button.
Does it work when not installed (aka directly in Safari)?
from add-to-calendar-button.
Yes it works on safari. and please note library version was v2.3.0 and not latest version which is deployed last week.
may i know is there any fix in new version regarding ios
from add-to-calendar-button.
Alright. Thanks.
In this case, there might be a problem with the web view detection. I will check on this. Usually, you would see a screen telling you to open a then provided url into Safari.
Unfortunately, there is no way around this as Apple blocks the dynamic generation of ics files, which are necessary for the Calendar.
What you can do:
- provide a static ics file via the icsFile option.
- if you require dynamic generation, you would need to generate this on the Server-Side. We provide a manager solution for this with our PRO service. There, the process would be slightly different as you would create an event via the api and then simply use the prokey attribute for the button element. If you want to go this way, I am happy to assist.
from add-to-calendar-button.
please note library version was v2.3.0 and not latest version which is deployed last week.
may i know is there any fix in new version regarding ios.
from add-to-calendar-button.
There was one fix, indeed. Not directly related, but could be worth a try.
from add-to-calendar-button.
hi @jekuer , i tried with updated version but it didnot work.
is there any way for apple calendar to fetch ical file open it using webcal://
in onclick event?
from add-to-calendar-button.
stupid question: why are you using test flight?
Are you using a wrapper around the PWA?
This would change a lot.
But most probably, that is the reason it does not get catched, while the restrictions of your wrapper do not allow the ics url to be generated.
Things to consider:
- we generate a data URL to dynamically generate the ics. The way around this would be a static ics file (there we automatically set https or webcal based on the case). Building an ics file dynamically would require a server side process. This is where the PRO version gets into play.
- When using a wrapper, you are basically - building a native app (from our perspective). There, you need to make sure you allow data urls and triggering downloads. This is not under our control.
- it could be that the info modal is not showing up, because it would work, but in the end gets blocked by test flight (I mean, we are in a very nested setup). This would mean that it will work in the actual app, but not with test flight. However, we cannot be sure about that.
- After all, at the moment, I do not see anything we could fix/change on our side.
Our demo page is a PWA as well. You can add it to your home screen to check it out. There, it is also working fine.
But maybe you have more information on your setup, tooling, and processes. This could help to maybe get to more ideas.
from add-to-calendar-button.
Closing this due to inactivity
from add-to-calendar-button.
@jekuer ideally it should get solved if we give activity to IOS device to launch the URL we are trying to open.
from add-to-calendar-button.
Related Issues (20)
- [Bug]: Bug on hovering button when all texts are hidden HOT 2
- [Bug]: Providing start time without end time causes component to not render HOT 1
- [Bug]: subscribe: false with icsFile is opening webcal:// URL not https HOT 8
- [Bug]: buttonStyle="date" does not respect listStyle HOT 3
- feature request: when buttonStyle=date, option to display date/time in browser local timezone HOT 4
- Add part attribute to inner elements HOT 4
- feature: lightTheme bodyStyle could respect bootstrap theme checking too... HOT 1
- Times getting skewed in Microsoft Office HOT 3
- [Bug]: Timezone doesn't display when start/end time is "dynamic" HOT 3
- Add a variable for text-align for modal multidate text HOT 1
- [Bug]: Aria labels are missing on calendar options HOT 2
- [Bug]: subscribe button doesn't render unless there is a startDate HOT 2
- [Bug]: Prop to modify Button icon HOT 1
- Tabbing on calendar should force the "on hover" content to display when the using the "date" button style. HOT 8
- How can we change the default icons of the providers? HOT 2
- Experiencing issues with incorrect times when adding events to Apple Calendar across different timezones. HOT 2
- [Bug]: Button not visible. HOT 2
- [Bug]: wrong date displayed in the event series preview if timezone is west of UTC HOT 1
- [Bug]: Yahoo event is not displayed as an All Day event if there is a startDate only HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from add-to-calendar-button.