So I am using firebase for my flutter web project but the image is not showing on the desktop version and showing on android chrome. using firebase hosting and domain so cros access I think should not be a problem or is it. I dont know
desktop:
mobile:
Related
I am working on flutter web app where i have implemented razorpay in my web app.
so razorpay working on local database but not working when I deployed website (on a custom domain).enter image description here
I have a website made with flutter web. My app which shows google admob ad. Now google admob told me to create an app-ads.txt file on my website . Flutter web is a single page website so, is it possible to create an app-ads.txt file with my flutter web app !?
I also recently tried flutter web. I went on a "fishing expedition", and managed to solve this issue.
What i did:
Place your app-ads.txt in <project>/web folder.
Run flutter build web
Check that app-ads.txt appeared in build/web folder.
Check that in build/web/flutter_service_worker.js in RESOURCES map appeared a record with key "app-ads.txt"(ex. "app-ads.txt": "4c75380ac52243715a448e96239e0ca5",)
Run firebase deploy --only hosting
After this, app-ads.txt should be available on https://your-domain.web.app/app-ads.txt, https://your-domain.firebaseapp.com/app-ads.txt and(if you added a custom domain) on https://my-custom-domain.com/app-ads.txt.
P.S. If you got redirected from /app-ads.txt to your main page, then try to clear your site cache:
Press F12
Open "Application" tab
Choose "Storage"
Press "Clear site data"
After this, app-ads.txt should be available.
My Flutter app has successfully been deployed via Firebase. I can access to any laptop browsers
On Mobile Browsers, it is failing and not able to see any error messages.
What could be root cause of a flutter web not functioning on Mobiles web browser?
I have added flutter web support in my existing flutter application. Successfully run in chrome browser using flutter run -d chrome. Then i have created a build for a web using flutter build web. How can i deploy or host this build to the URL for testing in any other browser.
My build we folder is looking like this...
I run my flutter app in 2 emulators, android and chrome. In android emulator my app showed mysql data but flutter web didn't show the data in chrome emulator.
Any help?
Which plugin are you using to access SQL data? If you're using sqflite, it doesn't have support for web. Note that sqflite are commonly used for local storage. If you're looking for other end-users to access the same database as well, you might want to consider looking into other solutions like Firebase Cloud Firestore. Otherwise, you can try using drift plugin - which has SQL support for mobile and web.