Discussion Forums  >  Uncategorized

Replies: 3    Views: 269

SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
08/03/11 01:28 AM (14 years ago)

Dropbox

Hi, does anyone know how to allow a user of my app the ability to save a PDF to their dropbox folder (if dropbox app is installed). I don't want to use launch in safari as this will show the URL to the pdf exclusive to app users. I want to add the function for app users to get a free copy of a PDF guide that is integrated in my app. Alternatively, anyone know how to mask a URL so the download URL is not displayed in safari, then using safari would be easy!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/03/11 11:26 PM (14 years ago)
Crazy hard without tons of hacking. But...this is doable by most: a) Setup a .PHP script on your website. You'll probably need to do some googling to get the code? b) Point a page in your app to your .PHP page. c) Your .PHP page reads the .PDF that is also stored on your site and streams it to your app. The app gets a PDF just like it expects. d) User vists another function / page in your app to 'save' the .PDF. This method calls a second .PHP script on your website. e) Your second .PHP script on your website emails, sends, whatever the .PDF to the user. This means you'll need to do some digging to figure out how to get a . PHP Page to read a PDF file and stream it. And, to get a .PHP page to read a .PDF file and send an email with an attachment.
 
SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
like
08/04/11 03:27 AM (14 years ago)
Thank you again. I'll look into that. If it's too difficult I'll just give details on how to buy the eBook (PDF) version and I'll sell the app cheaper. Cheers again
 
SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
like
10/16/12 06:27 AM (13 years ago)
David, and anyone else interested. I've figured out a method to share files in my app (iTeachSmart for iOS). It's pretty basic really. 1. Create a folder in your dropbox account for sharing files 2. Get the link URL to that folder 3. Insert a PDF file into your app as a menu item (ensure the PDF is local to the device and not downloaded via URL. The PDF must have a hyperlink to the Dropbox Folder URL. 4. Users will open up your Dropbox folder (the URL is hidden as this is not Safari). 5. From here users can direct download (view PDF, Word etc on their device) and/or "Save to dropbox". They are presented with the option to sign in or create an account. 6. The selected files (or entire folder) are now downloaded to their own account. This means that files are stored remotely so not adding to the app size and no additional SDK is required. (I tried the Dropbox SDK and it's rather fiddly) This feature is in version 2.1 of my iOS app which is still in development so I'm waiting to see if Apple approves the new version or not. (fingers crossed)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.