How to share pdf into my app

Hi guys

I need my app to receive a pdf that comes shared from the drive or an attachment in email, I need to upload this file to the cloud…
Any ideas on how to make my app eligible to appear on ios and android sharing and how to get this pdf in my app?