I am making an app that allows the user to navigate through a series of selections and then directs them to a PDF which is stored on a website that I have.
I only want the PDF's to be viewable from within my app and not just from a random person with the URL. I was thinking I would put a password on the website and then the app would somehow pass the password to the website to enable the download, (the pdf's themselves would not have a password).
How do I have the app submit the password for my website automatically? And how do I download and then display the PDF? I know how to display a PDF that is part of the application bundle but I am new to networking/downloads. I would like the app to save the PDF locally once it has been viewed.
Is there a way to make the website only work for someone on a mobile device?
Thanks in advance