C.A. Meeting App (iPhone or Android)

Getting Your App…

Please wait while we direct you to the correct app store.

If you are not redirected automatically, please select your store below:

Download on the Apple App Store Get it on Google Play

<script>
    // --- IMPORTANT: Replace these with your actual app store links ---
    const appleAppStoreUrl = "https://apps.apple.com/us/app/c-a-meeting-finder/id6504262893"; // Example for Duo Mobile
    const googlePlayStoreUrl = "https://play.google.com/store/apps/details?id=com.caitcommittee.camobileappdemo&hl=en_US"; // Example for Duo Mobile
    // -----------------------------------------------------------------

    document.addEventListener('DOMContentLoaded', () => {
        const userAgent = navigator.userAgent || navigator.vendor || window.opera;
        const appleLink = document.getElementById('appleStoreLink');
        const googleLink = document.getElementById('googlePlayLink');

        // Set the href for the fallback links immediately
        appleLink.href = appleAppStoreUrl;
        googleLink.href = googlePlayStoreUrl;

        // Simple OS detection
        if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
            // It's an iOS device
            window.location.href = appleAppStoreUrl;
        } else if (/android/i.test(userAgent)) {
            // It's an Android device
            window.location.href = googlePlayStoreUrl;
        } else {
            // For desktop or other unknown devices, show both links
            // The spinner will remain, but the user can click manually.
            // You might want to hide the spinner or change the message for desktop
            console.log("Detected non-mobile or unknown OS. Showing both download options.");
        }
    });
</script>