Aceess only pdf file using Dropbox Chooser in ios - ios

I downloaded a simple demo for Dropbox Chooser& its works fine for me.
but How can I set file type for chooser same as for JS Chooser.
JavaScript is able to set file type for chooser like as follow:
set options param with extensions: ['.pdf', '.doc', '.docx'],
Help me to solve this
Thanks

The Chooser on iOS doesn't support file extension filtering.

You can use this sample which give you the capability to list only the types you want by using
dropboxBrowser.allowedFileTypes = #[#"pdf"];
Good Luck

Related

Can we share PDF or other documents using JSQMessanger?

We want to share PDF or other documents using JSQMessanger. Because we have used JSQMessanger for chating in our App.
You should expand JSQ functionalities for the PDF source
Look at how the example app does media items i.e. Video or images. It will be similar to this and then you just need to adapt it so that it can handle the PDF payload. Definitely a great thing to add to the library.

Reading an excel file using cordova in ios

I am currently working on a hybrid app for iOS. I am using Ionic/Cordova to make it. It's my first time using it.
I want to be able to read an xlsx file that is currently on my iPad and show that data in my app in a table format. I have read about the ngCordova file plugin at http://ngcordova.com/docs/plugins/file/. I have also read about AlaSQL.js at https://github.com/agershun/alasql. Can I use these together to do my task? Or should I use one over the other?
I find the documentation for the file plugin to be a bit confusing. Can someone give me a pointer or example of accessing the file and outputting it?
Thanks!
try to use file plugin to retrieve directory list and fileOpener2 plugin to open xlsx file.

Parse iOS SDK Localizing

I am using Parse SDK as a backend and when application loading data from server i see label "Loading". But my app using another language and i wanna translate it. How can i fix it?
Image here
I am tried to change simulator language and and changing value of Localization native development region key in plist.
Anyone had this problem? I think there is very simple answer, but i cannot find it. :)
Thank you for help!
So after a long search, i discovered that you should create a file named "ParseUI.strings" in order to change UI elements like "Loading.." as you mentioned. You can see the file in the image below. You should use at least ParseUI framework 1.1.6 for this method.
After you create a file and named it as "ParseUI.strings" you can change UI elements which parse provides us. You can see which strings are editable here.
In your example you want to change "Loading..." string, so all you have to do is enter the code in your ParseUI.strings file.
"Loading..." = "Whatever thing you want to say...";
Thats it, it worked for me.

How to download a Dropbox share linkage (aimed at a zip file) to local

I have following question and want help regarding that.I'm using Dropbox iOS SDK.
Is it possible to download a Dropbox share linkage (aimed at a zip file) like https://www.dropbox.com/s/m2o28nls8m8uyx9/FacebookAPI.zip.
I think I could use HTTP post method. However, the receive MIME Type is text/html rather than zip type.
Thanks
i think you can try this:
change your sharable link to:
https://dl.dropbox.com/s/m2o28nls8m8uyx9/FacebookAPI.zip?dl=1
it works on my file.
For me this works
Replace 'https://www.dropbox.com' with 'https://dl.dropboxusercontent.com'

Exporting files from a Javascript based phonegap app - options or ideas?

I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile framework and phonegap.
It'll need to export/send csv files in some way to the users, but I'd be interested to hear ideas or suggestions about the best way of doing so. If this can be done on the js side of the app that'd be ideal as it's what I'm most familiar with. A couple of options I've considered are:
Uploading the file using the google docs api
Writing the file to the file system (then export e.g. via iTunes)
I'm new to this so any suggestions gratefully received! Thanks for your help
There are a few options that you could use depending on how you want it to work.
The main options would be to
Use the File API (http://docs.phonegap.com/phonegap_file_file.md.html#File) to store files on the filesystem of the device.
Upload the file to a server using a standard XMLHttpRequest.
Write a native PhoneGap plugin on each platform that you are interested in that could connect to Google docs.
As Dave pointed out you can write files with the FILE API. I have used the file api on iOs to write custom log files and havent found any yikes so far.

Resources