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

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.

Related

Need to change firebase project in flutter application

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.

is there any way that we can save a file in flutter web like in android cache?

I want to download a zip file and save it in a temporary folder then extract it in that. Is there any way we can do it in flutter web?
You can check this package: https://pub.dev/packages/archive
The new versions are web supported.

How to deploy Flutter Web to my own server?

I've just created a flutter web application and now I am ready to deploy it. Looking at the docs it looks like I need to use Firebase Hosting? But I want to host the app on my own server. I tried copying the web directory from Build but when I go to the path I get a blank screen on web. How do I deploy it correctly? Or is it just simply not possible without Firebase?
First you need to compile the application.
In a terminal, command prompt or Powershell, go to the root directory of your project.
From there run a build:
flutter build web
This will create a new directory inside your project.
c:\your-project-folder\build\web
Copy everything that is in the web folder to wherever you want to publish / host your application.
Your application is bundled up into a main.dart.js file.
An index.html is also in that directory. You should be able to run your Flutter web app by visiting that index.html.
All the instructions for building a Flutter application for web platform is here.

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.

Where can I find the b4a .apk on my phone after It gets installed?

I wanted to send the file to a friend via Bluetooth tonight but could not seem to find the apk file on the phone file system, but the icon was installed and in my apps?
Any help would be appreciated. Cheers
You do not have access to the install APK files. The APK is available on the desktop under the Objects folder.
If you install an application, the APK file is stored in teh /data/app folder on your system.
You'll need root access to get the apk from there and an file explorer program like root explorer to get there.
You can download an app like app backup and restore to backup this particular application. Download link from play store, https://play.google.com/store/apps/details?id=mobi.infolife.appbackup
Next u can go to backup, select the app and send, or goto the folders and you will see a folder nameed app backup and restore, from there you can copy to pc or still share to anybody