totaldebug / atomic-calendar-revive

An advanced calendar card for Home Assistant Lovelace.
https://docs.totaldebug.uk/atomic-calendar-revive
MIT License
391 stars 63 forks source link

Card not working on iOS 12.5.7 #1343

Closed Lofdahl closed 5 months ago

Lofdahl commented 5 months ago

Is there an existing issue for this?

Current Behavior

On my dashboard I get the following error: "Custom element doesn´t exist: atomic-calendar-revive" The same dashboard (incl card) loads fine on iPad with iPadOS 17.1.2, iPhone with iOS 17.1.2 both in Safari and Companion App but not on the iPad Air that I use as our "command center"

Dashboard

Expected behaviour

The card :)

Steps To Reproduce

Install the card from Hacs on system running iOS 12.5.7 and see if the card loads or not.

Mode

Both

Card Version

9.2.1

Home Assistant Version

2024.1

Configuration

- type: custom:atomic-calendar-revive
    entities:
      - entity: calendar.family
        color: white
    dateColor: white
    eventBarColor: red
    timeColor: white
    dayWrapperLineColor: white
    descColor: white
    enableModeChange: true
    firstDayOfWeek: 1
    disableCalLink: false
    showProgressBar: false
    showDescription: false
    showLocation: false
    noEventsForTodayText: Nothing happening today
    dimFinishedEvents: true
    hideFinishedEvents: true
    maxEventCount: 5
    hoursFormat: HH:mm
    dateFormat: YYYY-MM-DD
    refreshInterval: 3600
    showWeekDay: true
    showMonth: false
    showFullDayProgress: false
    showNoEventsForToday: false
    noEventsForNextDaysText: Nothing happening today
    showEventIcon: false
    showHiddenText: false
    calShowDescription: false
    showLastCalendarWeek: false
    showDate: false
    card_mod:
      style: |
        ha-card{
          background: black
        }

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 5 months ago

Hello @Lofdahl, thank you for your interest in our work! If this is a bug report, please provide your configuration and any screenshots that would assist troubleshooting, otherwise we can not help you.

marksie1988 commented 5 months ago

This is due to some dependencies the card uses dropping support for older browsers.

Lofdahl commented 5 months ago

Thanks for the reply @marksie1988

Okey so these dependencies will not be fixed so that the card can be used in older versions of iOS? I’m not running the dashboard in Safari but in the Companion App (but maybe that is the same)

marksie1988 commented 5 months ago

The companion app uses the browser in the back, so it's essentially the same.

It's unlikely as support was removed due to security vulnerabilities and being old

Lofdahl commented 5 months ago

Okey, thanks for the explanation. :)

Would it then work if I rolled back the card to a previous version?

marksie1988 commented 5 months ago

Yes I think v9 or possibly 9.1 should work.

Lofdahl commented 5 months ago

Downgraded card to 9.0.1 and it now works on the tablet again, 9.1 didn´t work. Closing this issue as there might not be an update for this that solves the issue. Thanks!

steveworkman commented 1 week ago

@marksie1988 could you give me some more detail on which dependency no longer supports iOS 12? I can see that the 9.1 update introduced Lit 3 uses es2021 but the things that it trips up on - optional chaining and nullish coalescing, can be fixed by transpiling some parts of node_modules. Would you be interested in a PR if I can make this work?

marksie1988 commented 1 week ago

@steveworkman sure if you can get it working happy for a PR, I just don't have a device that old to test on so can't really do it myself 👍

steveworkman commented 1 week ago

As a note, I have it working locally, and I'll try to optimise it over the next few days as the bundle size gets enormous if you try to transpile everything

github-actions[bot] commented 1 week ago

:tada: This issue has been resolved in version 9.8.0-beta.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 week ago

:tada: This issue has been resolved in version 10.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: