How to open pptx, docx, pdf , doc files in flutter iOS and Android? - flutter

My files come from a server.
I have tried using open_file plugin by first downloading the files to temp storage but it only saves the files offline in iOS. I also tried flutter_filereader plugin but it is not allowed on AppStore because uses a Chinese engine.
I have also tried webview with the below url scheme but google drive is unresponsive and need to reload 3 or 4 times.
"http://drive.google.com/viewerng/viewer?embedded=true&url=${widget.resourcePath}"
Any help or suggestions would be helpful

Related

How to store files in directory that will be accessible to user in flutter?

I have encountered a problem that the app needs to save pdf files downloaded from the internet in the downloads folder in both ios and android, but after searching for solutions on the internet I have not found anything that would help in this implementation. I would appreciate if someone could share their experience in implementing such functionality.
It would be better if you can add more details to your questions. It is preferred that you should attach some code or screenshots of your code so that you can get better help.
every app in android or ios has its own folder in the device storage, android apps will be in the android directory.
you can use the path_provider plugin to get the directory of your app, all the information you need will be in this link

How I can open the Local files(xls, docs) in my flutter app

I have to open local Xls and docs files in my flutter app. Currently, I already displayed pdf & image files but facing issues while opening the xls and docs.
Help me out to open these files in the app itself.

Browse all pdf and text files in the iphone

browse file in iphone I'm developing an iPhone app in which I have to upload the PDF and text files on server from iPhone. Please guide me can i browse all pdf files stored in iPhone into my application?
Its not possible to Monitor(Browse) the Files in IOS. Apple does not Approve this type of applications. And also iPhone/iPad we can't access the Other Application Data's. As per your point The PDF must be located in Other iOS Application. We can't Browse the Files Except Bundles and Documents folder.
Only way you can Upload file to Server and Make browser list Using Tableview.
The following are the possible ways to do this.
FTP UPLOAD:
We can Upload Documents to FTP Server and Download Via FTP in iOS.
In This. Upload and Download we neet to use Authentication policy.
SimpleFTPSample
Upload things to a FTP in Objective-C iOS
Server Upload.
We can Upload File to Server(Php,ASP.net,ect). The download is Ordinary method.
Link 1
Link 2
You app runs in a Sandbox environment. This means the app can only access files and directories within its own contents.
More Information On File System Programming Guide

Download images from google drive in IPhone app

I'm making an IPhone app where i integrated google drive. Now I want to download images from the drive into app. There are multiple images.
Thanks
The Google Drive SDK documentation includes complete code snippets in multiple languages showing how to download files:
https://developers.google.com/drive/manage-downloads
You should also check the reference guide for files.get, which includes Objective-C code:
https://developers.google.com/drive/v2/reference/files/get

opening a file in its native program with GWT

I wanted to open the files available in my web application to its corresponding native apps in PC. I have created the set of program to download the file from web app but didn't know how to set that files to open with native app in system. kindly help me in this. If you have any other options to use rather than downloading and displaying the file please suggest me.
Note: I am using eclipse to develop web app
This problem is not related to GWT. Just provide links to files in your app. When a user clicks on link, user's browser/PC will decide what to do with a file. It will either open the file within a browser (PDF, images, some video and music files depending on a browser), or it will offer to save them.