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.
Related
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??
Issue: When tapping on redirect link it gives Page Not Found.
What is expected: Tapping on the redirect link sent to your email should open up the app if it is installed.
Have tried the suggestions from most related solutions on StackOverflow and GitHub.
My custom domain in Hosting:
It is also authurized:
Dynamic links I made:
ActionCodeSettings URL prod project: https://myprodapp.com/login/welcome
firebase.json:
added to info.plist:
Associated domain for iOS
Callback URL:
Android
iOS
Need to mention we have two firebase projects connected to our flutter app - one for the development environment (dev) and the other for the product environment (prod). Passwordless sign in with the firebase default domain works on dev environment for only Android. So seems the coding part works fine.
I have created an app using Flutter v3, and I am using GoRouter to handle all the routes. When I run the app on localhost, everything is working fine. But when I try to go to /signIn page after uploading it to Netlify, it shows a "Page Not Found" error.
URL: https://63406985ec088a30cd8c9de8--allmity-beta.netlify.app/
When you open the above URL, you will automatically be redirected to https://63406985ec088a30cd8c9de8--allmity-beta.netlify.app/signIn.
But when you go to https://63406985ec088a30cd8c9de8--allmity-beta.netlify.app/signIn directly, it will show the error.
I was able to fix the error by adding a 200 redirect rule in netlify.toml file to redirect all requests to /.
Here are a few helpful resources:
https://answers.netlify.com/t/support-guide-direct-links-to-my-single-page-app-spa-dont-work/126
https://www.netlify.com/blog/2019/01/16/redirect-rules-for-all-how-to-configure-redirects-for-your-static-site/
Halo, i'm flutter dev recently diving into web field. I hosts my release build with Firebase Hosting, and just found a weird behaviour in the gc Logs Explorer.
My bundles are working just fine and init load time is fast. But, strangely, main.dart.js is sent twice for a single client browser get request. In the client browser console, nothing seems weird: only one single main.dart.js is identified in the network tab. But in a specific environment, Firebase Hosting sends main.dart.js twice in a moment of a blink. No other files or assets are sent twice. They just worked fine, sent only once. I've collected the environments where the main.dart.js is sent twice. Btw, my app is just a test classic counter app, only containing http package in addition(purpose of testing the compiled size of http package). No change in default index.html or elsewhere.
Below list shows the envs where Firebase Hosting send main.dart.js twice.
mobile private browsing safari (version is specified in the screenshot: 2022-09-06T09:56:27Z: before cache cleared
mobile private browsing safari (version is specified in the screenshot: 2022-09-06T09:46:21Z: after cache cleared
(i will edit the list if more envs show this weird behaviour)
I've just followed the basic instructions. Nothing special, so confused now. Hope some gurus would figure out the reason why Firebase hOsting is angry with me. Only main.dart.js within some specific envs sent twice. I attached a screenshot of my Cloud Logger when the case happened. Same behaviour is shared through the envs listed above.
Hope this question reaches gurus in the community. Thank you in advance [:
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.