when I click on browsers reload button my web page stucked on index.html page
while debugging I got to know that there is a javascript code i.e
navigator.serviceWorker.register('/flutter_service_worker.js');
it stuck on this line with the Exception
Exception while loading service worker: DOMException: Failed to register a ServiceWorker for scope ('http://localhost:9090/wiki/') with script ('http://localhost:9090/wiki/flutter_service_worker.js?v=null'): The script has an unsupported MIME type ('text/html').
After lots of research nd wasting time I found that there was an issue in latest Flutter SDK Update Just downgrade it to 3.3.10 and it will work.
Related
ScreenShot
When I open the link in the email that is sent by Firebase Auth it self, I'm getting 404 Page Not Found screen. However, I have different web apps as well, and I don't have this problem with them. Only difference between this project and others is this project in Production mode.
Note: Site is working as expected, except email links (I'm not facing this 404 page if I just open my web site).
I run flutter doctor -v and there is no problem.
I have tried flutter clean but no result.
I have updated firebase packages but no result.
I want to add google machine language kit to my flutter project, when i do try adding the google ml kit this error appears, what could be the problem and how can i fix it?
i tried closing editor/ doing a flutter clean/ and closing my app
i have the latest firebase and firestore.
my initial problem was I used the image label kit at the start, when i tried to do so this appeared
MissingPluginException(No implementation found for method vision#startImageLabelDetector on channel google_mlkit_image_labeler)
so I tried closing the editor and doing a
flutter clean
it did nothing but bring up the other problem which is
FirebaseException ([cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.)
The error that you have encountered initially from plugins used are usually caused by either outdated plugin versions or the downloaded plugin not building properly.
Try to run these steps serially then close your code editor and check again:
flutter clean
flutter pub get
flutter run
When flutter clean is executed and then flutter pub get it will help generate build files again. You can also try to update the plugin version and check.
Find the example app here and similar examples as below:
Missing Plugin exception issue
Missing Plugin exception on implementation
Flutter unhandled exception missing plugin
In my flutter web, I use route-generating to navigate around the debug running side (localHost), from home to profile, and so on.
However, when I publish the website to the internet, the routing appears to be missing.
I open the website normally; everything is fine until I refresh the page, at which point BOOM! The page crashes and returns a 404 error: not found.
I tried multiple solutions, such as adding a 404.html file to my web Folder, and i tried to add .htaccess like the solution in this problem here .
https://stackoverflow.com/a/72147109/14865120
So what is there any other solution to Fix this problem??
I am launching external url on a button click by using window.location.replace
Login(){
window.location.replace("https://localdomain.com");
}
In ionic serve, after the click it redirects to "https://localdomain.com/uaa/login" and letting me to Login with corresponding cookies & header info coming as expected.
But if the same is tried in mobile i.e. after the apk build and opened in the device.
After the click, It shows below instead of redirecting to /uaa/login. so if understand correctly, redirection is not handled by default in ionic's webview? if so how to handle it?
I see the below console log from device inspect when above error comes.
Failed to load resource: the server responded with a status of 401 () /favicon.ico:1
There is no problem with inappbrowser. The back end server of the URL I'm loading in inappbrowser is having error in the logs. Resolved after fixing them
I downloaded the example project from Auth0's website. When I run the project with the ionic serve command the main page pulls up fine, but when I press login it throws the error Cannot read property 'isAvailable' of undefined. I have tried running this app on an Android device and it does work. Any ideas on how to fix this error? Thanks.
#cyberabis is correct in his comment.
ionic serve does not load cordova plugins.
Auth0 uses auth0-cordova plugin which in turn requires:
cordova-plugin-safariviewcontroller
cordova-plugin-customurlscheme
All these require you to run the ionic app in your device or emulator if you want to test the login functionality.