• Resolved johnjaye

    (@johnjaye)


    So there seems to be some bug on Android 13, 14 devices. The event calendar just works fine on desktop it will get added to Google Calendar perfectly however it says calendar doesn’t exist on mobile. Is this getting/going to be fixed in any version? According to some posts the issue is that the event calendar sending the lines too long for the devices to be able to handle them and they break and as a solution some recommends downloading the ics manually and importing it to the calendar, give me a break. Users especially mobile users are pure stupid if they need to do 2 things they will not use the feature period.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Darian

    (@d0153)

    Hi @johnjaye

    Thanks for reaching out. Upon checking, we do have an internal ticket (TEC-4242) related to the issue you’re describing. This has already been addressed in the latest version of our plugins.

    If you’re already using the most recent version and are still experiencing the issue, please share the URL of your calendar so we can review it further on our end.

    Thread Starter johnjaye

    (@johnjaye)

    Hello, I’m using 6.15.9 are you referring to this 3 years old thread? https://ww.wp.xz.cn/support/topic/subscribe-to-google-calendar-does-not-work/

    I tried to do some hooks myself they do work doing their things google still does not eat the feed.

    function site_com_ultra_aggressive_fix() {
    if (!isset($_GET[‘ical’]) || $_GET[‘ical’] != ‘1’) {
    return;
    }

    remove_all_actions('tribe_events_ical_feed');
    
    header('Content-Type: text/calendar; charset=utf-8');
    header('Content-Disposition: attachment; filename="site-com.ics"');
    
    $events = tribe_get_events(array(
        'posts_per_page' => 50,
        'start_date' => date('Y-m-d H:i:s'),
    ));
    
    $lines = [];
    $lines[] = "BEGIN:VCALENDAR";
    $lines[] = "VERSION:2.0";
    $lines[] = "PRODID:-//Site.com//EN";
    $lines[] = "CALSCALE:GREGORIAN";
    $lines[] = "METHOD:PUBLISH";
    
    foreach ($events as $event) {
        $lines[] = "BEGIN:VEVENT";
        $lines[] = "UID:" . $event->ID . "@Site.com";
    
        $start = tribe_get_start_date($event->ID, false, 'Ymd\THis');
        $end = tribe_get_end_date($event->ID, false, 'Ymd\THis');
        $lines[] = "DTSTART:" . $start;
        $lines[] = "DTEND:" . $end;
    
        // TITLE - MAX 50 CHARS
        $title = get_the_title($event->ID);
        $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
        $title = strip_tags($title);
        $title = substr($title, 0, 50);
        $lines[] = "SUMMARY:" . $title;
    
        // DESCRIPTION - MAX 50 CHARS
        $desc = get_the_excerpt($event->ID) ?: $event->post_content;
        $desc = html_entity_decode($desc, ENT_QUOTES, 'UTF-8');
        $desc = strip_tags($desc);
        $desc = preg_replace('/\s+/', ' ', $desc);
        $desc = substr($desc, 0, 50);
        $lines[] = "DESCRIPTION:" . $desc;
    
        // LOCATION - MAX 50 CHARS
        $location = tribe_get_venue($event->ID);
        if ($location) {
            $location = html_entity_decode($location, ENT_QUOTES, 'UTF-8');
            $location = strip_tags($location);
            $location = substr($location, 0, 50);
            $lines[] = "LOCATION:" . $location;
        }
    
        $lines[] = "END:VEVENT";
    }
    
    $lines[] = "END:VCALENDAR";
    
    // FORCE EVERY LINE to max 70 chars (to be extra safe)
    foreach ($lines as $line) {
        echo substr($line, 0, 70) . "\r\n";
    }
    
    exit;

    }
    add_action(‘init’, ‘site_com_ultra_aggressive_fix’, 999);

    Hi @johnjaye,

    Yes, the problem in the given link was also associated with ticket number TEC-4242, which we have already resolved.

    Could you please update The Events Calendar to the most recent version (6.15.13) and check if it helps?

    If the issue persists, could you provide the following version of the following?

    1. PHP
    2. WordPress
    3. Theme and Version

    Could you share the direct URL to the page you’re having issues with? Please do not share any credentials, this is for us to follow the WordPress Forum Guidelines.

    Looking forward to helping you with this one.

    Plugin Support Darian

    (@d0153)

    Hi there,

    I hope you’re doing well. I just wanted to touch base and check in with you. It’s been a little while since we’ve heard from you. I was just curious if you had the chance to try out the recommendation provided above.

    Let us know if there’s anything we can assist you with.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems we haven’t heard back from you in a while, so I’ll go ahead and close this thread for now. If you still need help, feel free to reopen it or start a new one—our team is always here to assist!

    Thread Starter johnjaye

    (@johnjaye)

    Hello,

    Sorry I did not have time to work on this, just upgraded to Version 6.15.14 .

    The issue is exactly the same from multiple Android devices and tablets.

    User goes to Subscribe -> Google Calendar that opens the Google Calendar as it should

    Then processing … calendar no longer exist.

    Can you confirm that this is the connection flow so I have something to go on to debug it?

    Thanks!

    Plugin Support Darian

    (@d0153)

    Hi @johnjaye

    From what I understand, when you subscribe to a calendar via Google Calendar, you’re redirected to the Google Calendar interface along with your calendar’s webcal URL. This webcal URL is then used to add the calendar to Google Calendar, allowing events from your website to sync automatically. Google typically refreshes events from external calendars every 24–48 hours.

    I tested this on my end, and it’s working as expected—events are successfully added to Google Calendar. However, for some reason, the Google Calendar subscription link is hidden when viewing the page on an Android device.

    To make the Google Calendar and iCal links visible on Android, you can add the following CSS under Appearance → Customize → Additional CSS:

    .tec-is-android .tribe-events-view--shortcode .tribe-events-c-subscribe-dropdown__list-item--gcal,
    .tec-is-android .tribe-events-view--shortcode .tribe-events-c-subscribe-dropdown__list-item--ical,
    .tec-is-android.post-type-archive-tribe_events .tribe-events-c-subscribe-dropdown__list-item--gcal,
    .tec-is-android.post-type-archive-tribe_events .tribe-events-c-subscribe-dropdown__list-item--ical {
    display: block !important;
    }

    This should force the subscription options to display properly on Android devices.

    Let me know how it goes.

    Plugin Support tristan083

    (@tristan083)

    Hi @johnjaye

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new topic if you have any more questions.

    Thread Starter johnjaye

    (@johnjaye)

    Keep closing it all you want it won’t resolve the actual issue 🙂

    Don’t have 24/7 to work on this site. A proper tool like this would be nice to test it properly externally:

    URLS=(
    https://site.com/?post_type=tribe_events&tribe_events_cat=tours&ical=1&eventDisplay=list”
    https://site.com/?post_type=tribe_events&ical=1”
    https://site.com/events/ical/”
    https://site.com/events/?ical=1”
    https://site.com/?post_type=tribe_events&ical=1&tribe_events_cat=tours”
    )
    for url in “${URLS[@]}”; do
    echo -e “\n\nTesting: $url”
    echo “—————————————-“

    # Get headers
    echo "Headers:"
    curl -s -I "$url" | head -20
    
    # Get first 10 lines of content
    echo -e "\nFirst 10 lines of content:"
    curl -s -L "$url" | head -10
    
    # Check if it contains iCal data
    if curl -s -L "$url" | grep -q "BEGIN:VCALENDAR"; then
        echo -e "\n✓ This appears to be a valid iCal feed!"
    else
        echo -e "\n✗ No iCal data found in response"
    fi

    done

    So after the update and waiting couple of days something interesting happened now the Android 13/15s can get the calendar, they say calendar successfully added but you do not see it popping up nor in the menu nor the events. Also I can add the calendar on desktop say that GMAIL sync is on and the events don’t appear on Android :/

    Plugin Support Darian

    (@d0153)

    Hi @johnjaye

    Thank you for your response and for sharing your feedback.

    To keep our support threads focused and manageable, we close threads that have been inactive for more than 48 hours. This helps prevent our support queue from being flooded with inactive tickets, and we appreciate your understanding.

    Regarding the issue, the link you provided appears to be behind a login page. If this is the case, it’s likely that Google will encounter the same restriction when trying to access your calendar, which would prevent events from being fetched. Do you happen to have a publicly accessible development or staging site that we can test on to investigate the issue further?

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.