fcb12
fcb12

Reputation: 15

Make pdf file accessible through a link in the app

I've been searching for weeks on stackoverflow and google, but I wasn't able to find any good results.

I have a pdf file on my computer and I want to access that pdf file from an ios app, by clicking a link which will take me to that pdf file.

And when I modify that pdf file on my computer I want the link in the app to update with the latest version of that pdf file.

I thought of using a backend for storage such as Firebase storage but I had some issues with that.

How can I access that pdf file from an app? It doesn't have to be through a link, anything that will allow access with the latest version of the file is fine.

I appreciate any suggestions.

Thank You

Upvotes: 1

Views: 109

Answers (2)

AtulParmar
AtulParmar

Reputation: 4570

You can do this using web services API, You need to create simple webservice in backend (in any language for example PHP) to get the list of file with path to access in mobile app, and configure backend webservice code to your server (your computer, wherever you want to update files), So you can get every time updated data (files path) using webservice.

Upvotes: 1

qtngo
qtngo

Reputation: 1679

The simplest way may be using a cloud storage such as Dropbox, Google Drive, One Drive...etc and get the public share link to that file. Then you can load the PDF in your iOS app using this link.

Upvotes: 1

Related Questions