Sharing PDF file with Ionic app

I’m trying to share PDF files with my ionic app like with dropbox, but it seems like a common issue. I did search around, but no success. Could someone help guide me? What I want is when a user opens a PDF file and clicks on the share button, my ionic app appears and takes that file and uploads it to the server. Is it possible to do that with deep linking? If so, could you guide me? I know how to upload the file to my server using Transfer plugin, but don’t know how to share/get the file.