Mobile Apps (PWA) Support β
ColibriPlus provides two tailored web applications: one optimized for mobile devices and another for desktop environments. Each offers a unique UI/UX designed to enhance the user experience on its respective platform. Both applications are included with ColibriPlus by default, requiring no additional setup or configuration.
Overview of PWA β
ColibriPlus is a web-based application that leverages Progressive Web App (PWA) technology to deliver a native app-like experience. With PWA support, you can install ColibriPlus on your mobile device, enabling offline access, push notifications, and a seamless user experience without the need for a native app.
PWA support is included out of the box and can be enabled with minimal configuration.
Enabling PWA β
To enable PWA functionality, configure the following variable in your .env
file:
# Enable or disable PWA support (true to enable, false to disable)
PWA_ENABLED=true
Ensure this variable is set to true
to activate PWA features.
Configuring β
To customize the PWA, modify the public/pwa/manifest.json
file. This file defines the appβs metadata, appearance, and behavior when installed as a PWA.
Hereβs an example manifest.json
configuration:
{
"id": "colibri-app",
"name": "ColibriPlus",
"short_name": "Colibri",
"description": "ColibriPlus: A social platform for sharing thoughts, news, and ideas.",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#1a73e8",
"scope": "/",
"dir": "auto",
"orientation": "portrait",
"prefer_related_applications": false,
"related_applications": [],
"categories": ["social", "news", "social-network"],
"icons": [
{
"src": "/pwa/icons/192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/pwa/icons/512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
Customization β
- Name and Short Name: Update
name
andshort_name
to reflect your brand. - Description: Provide a clear, concise description of your appβs purpose.
- Icons: Ensure the icon files (
/pwa/icons/192x192.png
and/pwa/icons/512x512.png
) exist in thepublic/pwa/icons/
directory. Use high-quality images optimized for the specified sizes. - Theme Color: Adjust
theme_color
to match your brandβs color scheme. - Purpose: The
purpose
field for icons specifies usage (any
for general display,maskable
for adaptive icons on supported platforms).
After updating the manifest, clear the cache and rebuild the frontend with the following commands:
php colibri cache:clear
php colibri optimize:clear
php colibri optimize
Installation β
Once configured, ColibriPlus can be installed as a PWA on both Android and iOS devices, offering a native-like experience.
Android β
Android devices support PWAs natively through Chrome. To install the PWA:
- Open the Chrome browser on your Android device.
- Navigate to the ColibriPlus website.
- Tap the three-dot menu in the top-right corner.
- Select Add to Home screen or Install app (label may vary).
- Confirm by tapping Install.
- The PWA will appear on your home screen and function like a native app.
iOS β
iOS 18+ supports PWAs through Safari. To install the PWA:
- Open the Safari browser on your iOS device.
- Navigate to the ColibriPlus website.
- Tap the Share button (square with an upward arrow).
- Select Add to Home Screen.
- Customize the app name if desired, then tap Add.
- The PWA will be added to your home screen.
Troubleshooting β
- PWA Not Installing: Ensure
PWA_ENABLED=true
in the.env
file and that themanifest.json
file is correctly configured and accessible. - Icons Not Displaying: Verify that the icon paths in
manifest.json
are correct and the files exist in the specified directory. - Cache Issues: Run the cache-clearing commands listed above to ensure the latest configuration is applied.
For further assistance, consult the official PWA documentation or contact the ColibriPlus support team.