Need to change firebase project in flutter application - flutter

I have published a app to play store and it contains Google authentication with firebase. Now I need to replace the firebase project with other firebase project . Does this effect after publishing the app ?

As you have uploaded the app, now in the existing application, you can not change the firebase project because the google-service.json file you included can not be changed now. All you can do is you can change that in the next build only. Just change the google-services.json with the new project JSON file and build another bundle and give the update.

Related

how to change firebase account in a flutter project?

I created a flutter project with my personal firebase, but now the client has already created his firebase, how do I change the account in a project, I've searched the documentation but without success?
Unfortunately there is no easy way to switch.
The information you configured when you first created flutter project on firebase, it has be configured again with clients Firebase.
For example -> replace old GoogleService-info.plist, android package name and iOS bundleID with the new one.

How to create admob app-ads.txt file flutter web app?

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.

Flutter - How can I download an existing PDF in the project to the user's machine?

How can I download an existing file in my project to the user's device?
In my project, there is a PDF file, which must be downloaded to the user's device. I tried to use url_launcher, but the Flutter Web in deploy did not recognize it.

Truecaller isn't working if I change the Package Name of the App

I developed an App with package for example - com.google.xyz deployed to playstore but due to some issues i had to create new App & i created as com.example.x_y_z
Now play store isn't accepting example. So I tried changing the package name in -
Build.gradle
3 Android manifest files
Main activity.kt
Firebase json file
Truecaller API - Changed the package name but used the old SHA1 key.
Let me know what might be the issue? And how to solve this.
Thanks Alot

I want to update the existing logo for my PWA app

When I am updating the logo of the PWA app the icon is not getting updated for the previously installed applications. However for newly installed apps I am getting the correct logo.
Did you try updating the new image icon in manifest.json & then showing a prompt to users to refresh the PWA?
You can try to have a look at the documentation for Android APK (from the question is not clear your target device: web or mobile).
Chrome will periodically compare the locally installed manifest against a copy of the manifest fetched from the network. If any of the properties in the manifest required to add the PWA to the home screen have changed in the network copy, Chrome will request an updated WebAPK, reflecting those new values.
This feature is not yet available for desktop, but planned in a future release.
Do you use any framework (Angular, React) to build your PWA? If you want to read more details about how to install an app on the homescreen or the web manifest properties, you can have a look here.