MirAI is a Progressive Web App (PWA) The Complete Guide
MirAI is not just an ordinary web-based AI assistant – it’s also a fully-featured Progressive Web App (PWA). Install it on your device like a native app, use it offline, receive push notifications, and enjoy a seamless, app-like experience.
Install MirAI Now📱 What is a Progressive Web App (PWA)?
A Progressive Web App is a web application that uses modern web capabilities to deliver an app-like experience to users. PWAs are:
- Reliable – Load instantly, even in uncertain network conditions.
- Fast – Respond quickly to user interactions with smooth animations.
- Engaging – Feel like a natural app on the device, with immersive full-screen mode and push notifications.
MirAI leverages the PWA technology to bring you the best of both worlds: the accessibility of a website and the power of a native application.
✨ MirAI’s PWA Features
| Feature | Description |
|---|---|
| Installable | Add MirAI to your home screen (Android, Windows, macOS, etc.) just like a native app. |
| Offline Support | Service workers cache essential assets, so you can still access the interface and previous conversations even without an internet connection. |
| Push Notifications | Get notified about updates, new features, and important announcements via OneSignal integration. |
| Fullscreen Mode | Enjoy an immersive, distraction-free interface without browser UI elements. |
| Splash Screen | A professional loading screen with a progress bar appears when you launch the app. |
| Automatic Updates | The app updates in the background whenever new content is available. |
| Secure Context | Served over HTTPS, ensuring your conversations and data remain encrypted in transit. |
🚀 How to Install MirAI as a PWA
On Android
Open MirAI in Chrome / Samsung Internet, tap menu → “Add to Home screen” → Install.
Or visit download page and tap the Install button.
On iOS (Safari)
Tap Share → “Add to Home Screen” → name it → Add.
Opens in full‑screen mode, just like a native app.
On Desktop
Click the install icon in the address bar (Chrome/Edge/Brave) or go to menu → “Install MirAI…”.
Or use the download page.
📦 Android TWA (APKPure)
For Android users who prefer a traditional APK installation, MirAI is also available as a Trusted Web Activity (TWA) package on APKPure.
Get it on APKPure⚠️ Only supports Android devices. Not available for iOS or desktop.
📲 What Happens After Installation?
- It opens in its own window, without browser tabs or address bar.
- You’ll see a custom splash screen while the app loads.
- Push notifications can be enabled (you’ll be prompted on first visit).
- The app updates automatically in the background.
🔧 Technical Underpinnings
Web App Manifest (MirAIPWAm.json)
The manifest file defines how MirAI appears when installed:
{
"name": "MirAI",
"short_name": "MirAI",
"start_url": "/chat.html",
"display": "standalone",
"background_color": "#1a1a1a",
"theme_color": "#1a1a1a",
"icons": [
{
"src": "https://raw.githubusercontent.com/Allwaysever/MirAI/refs/heads/main/Assets/Favicon.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "https://raw.githubusercontent.com/Allwaysever/MirAI/refs/heads/main/Assets/Favicon.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
display: "standalone" removes browser UI; theme_color and background_color define splash screen colors.
Service Worker (MirAIPWAsw.js)
The service worker caches key assets for offline use and handles background updates:
// Simplified registration
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('MirAIPWAsw.js')
.then(reg => console.log('Service Worker registered'))
.catch(err => console.log('SW registration failed', err));
});
}
Install Prompt Handling
MirAI listens for the beforeinstallprompt event to show a custom install button:
let deferredPrompt;
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault();
deferredPrompt = e;
showInstallButton();
});
Push Notifications via OneSignal
OneSignal integration sends updates and announcements:
<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
<script>
window.OneSignalDeferred = window.OneSignalDeferred || [];
OneSignalDeferred.push(async function(OneSignal) {
await OneSignal.init({
appId: "9b77aea2-462f-498d-be06-bc4f75ab7ab7",
safari_web_id: "web.onesignal.auto.31f2bfbe-48d0-4a72-b7e0-d44022a2d3bb",
notifyButton: { enable: false },
});
});
</script>
Splash Screen and Loading Animation
Custom splash screen with logo and loading bar:
<div id="splash-screen">
<div class="splash-content">
<img src="Assets/Name Logo.png" alt="MirAI" class="splash-logo">
<div class="loading-bar-container">
<div class="loading-bar"></div>
</div>
</div>
</div>
🎯 Benefits of Using MirAI as a PWA
One‑click access – No need to open a browser and type the URL every time.
Faster loading – Cached resources make the app launch instantly.
Offline reading – You can scroll through previous conversations even without internet.
Immersive experience – Full‑screen mode removes distractions.
Always up‑to‑date – The service worker updates the app in the background.
Native‑like feel – Gestures, transitions, and splash screen mimic a real app.
❓ Frequently Asked Questions
Is MirAI available on the Google Play Store or Apple App Store?
Not yet. MirAI is distributed as a PWA, which means you install it directly from the website. This gives you the freedom to use the latest version immediately without waiting for app store approvals. For Android users, we also offer a TWA version on APKPure (see above).
Do I need an internet connection to use MirAI after installing it?
You need an internet connection to send messages and receive AI responses. However, the interface and your chat history (cached locally) are available offline for viewing.
Can I receive push notifications on all platforms?
Push notifications are supported on Android (via Chrome, Samsung Internet) and on desktop browsers that support the Web Push API. iOS support is limited – you may not receive push notifications from PWAs on iOS.
How much storage does the installed MirAI app use?
Very little – typically under 5 MB for the cached assets. Your chat history is stored in the browser’s local storage, which can grow over time but is manageable via the memory settings in MirAI.
Can I uninstall MirAI like a normal app?
Yes. On Android, long‑press the icon and select “Uninstall” or drag it to the “Uninstall” area. On desktop, go to your browser’s installed apps list and remove it.
📈 Future of MirAI PWA
The development team behind MirAI (Allwaysever) is committed to enhancing the PWA experience. Upcoming improvements may include:
- Better offline support (e.g., caching AI responses for offline replay).
- Background sync to queue messages when offline and send them when connectivity returns.
- More native‑like gestures and transitions.
- Support for more platforms (e.g., Windows Store, Chrome OS).
🔗 Useful Links
📝 Final Words
MirAI is more than just an AI chat interface – it’s a modern Progressive Web App that brings you the convenience of a native app with the reach of the web. Whether you’re on your phone, tablet, or desktop, installing MirAI as a PWA gives you a fast, reliable, and engaging way to interact with the Gemini AI.
Go ahead and install MirAI today – your intelligent, always‑ready companion is just a tap away!
Install MirAI Now