You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have compiled my application to run on the web, and I have uploaded it to a server following the step-by-step instructions in both the README.md and https://web.dev/learn/pwa/.
I have added the icons and corrected the manifest.json to eliminate any errors.
On the web from a computer, the plugin works perfectly. I have a button that, when pressed, launches the function
PWAInstall().promptInstall_()
and the prompt appears without any issues. However, on an Android device with Chrome, the plugin does not behave as expected.
When the application is launched, the prompt automatically appears while the splash_screen is visible, but it only appears at that moment and never shows up again.
But then it never appears again, even when invoking the function
PWAInstall().promptInstall_()
I have no clue how to make this plugin work correctly on Android Chrome. It seems that, in the end, I'll have to resort to launching a custom modal for users to manually install it from the options menu.
Unless there's someone who has managed to make it work seamlessly on Android.
Greetings.
The text was updated successfully, but these errors were encountered:
I have compiled my application to run on the web, and I have uploaded it to a server following the step-by-step instructions in both the README.md and https://web.dev/learn/pwa/.
I have added the icons and corrected the manifest.json to eliminate any errors.
My application also utilizes the flutter_native_splash plugin.
On the web from a computer, the plugin works perfectly. I have a button that, when pressed, launches the function
PWAInstall().promptInstall_()
and the prompt appears without any issues. However, on an Android device with Chrome, the plugin does not behave as expected.
When the application is launched, the prompt automatically appears while the splash_screen is visible, but it only appears at that moment and never shows up again.
I have tried triggering e.preventDefault() within
window.addEventListener('beforeinstallprompt', (e) => { e.preventDefault(); deferredPrompt = e; });
But then it never appears again, even when invoking the function
PWAInstall().promptInstall_()
I have no clue how to make this plugin work correctly on Android Chrome. It seems that, in the end, I'll have to resort to launching a custom modal for users to manually install it from the options menu.
Unless there's someone who has managed to make it work seamlessly on Android.
Greetings.
The text was updated successfully, but these errors were encountered: