In my iOS app I would like to:
get an access token to add files to iCloud Drive on behalf of the user
send this access token to the server
the server will then upload files to the user's iCloud Drive.
This is possible with Dropbox and Google Drive.
Is this possible with iCloud Drive? I have looked at Cloudkit Webservices but it seems to talk only about databases and records, never about files.
Maybe I am missing something?
Related
I have a web application and a Google Docs add-on that work together. The Docs add-on passes the web application the Google Drive file id of the Doc it's currently running in.
My web application needs to be able to be able to access/download the file content. I want the web application to use the drive.file scope, so that would require the user to authorize the web application access to the file in Google Drive.
I haven't found any APIs which let me request the user authorize the web app permission to a known file id. I could use the File Picker API, but then the user has to find the file in their Drive (annoying user experience given we already know the file and prone to errors).
Is there any way we can just redirect the user to a Google Drive URL where it asks them to confirm they want to open the file with my web app? Or to preselect the file in the File Picker?
I don't think you completely understand how scopes work.
The is no way to request permission for just a single file id. Scopes are all or nothing. If you have read only access then you have read only access to all of the files on the users drive account. Same for write access.
Now lets look at Scopes#Drive
https://www.googleapis.com/auth/drive.file See, edit, create, and delete only the specific Google Drive files you use with this app
If you request authorization of the user using the drive.file scope. It will allow your application to create files on the users drive account, and access those files which your application created and only those files.
So there is no way to get access to only a single file on a users drive account. If you want access to a file on the users account that wasn't created by your app then your going to have to use drive.readonly or drive. Depending upon if you want read or write access.
I have a mobile app and it requires Firebase sign-up to backup / restore custom user data in Firebase. I am wondering if authorised user can get somehow the url of his own storage file and download it to his computer.
If a user is authorized to access a specific file, that user is authorized to access that file using any means. It doesn't matter whether that is through your app or through another app or API.
There is no way to limit access to the user's files to only your app.
I am working on integrating dropbox with iOS application. I want to implement below functionality.
User can share his existing dropbox file with app.
If user modifies any of the files, i should able to fetch the updated file and notify app server.
Also these files are not app related ones. User can share any docs in his dropbox account with app
After going through API, i found that i can use dropbox chooser UI to share files. chooser is generating temporary URL which i can share with my server to extract the file from dropbox.
But to get the modified files, i have to integrate with OAuth permission to run delta query on dropbox account. Here i am struck with two parallel functionalities chooser and OAuth which seems not related to each other. Even while asking OAuth permission also, dropbox taking to web url to grant permission instead of showing already logged in user on iOS.
How do i verify both chooser account and OAuth granted account are same? How will i show dropbox chooser(of OAuth connected) when user wants to add any file to app?
Correct me if i am wrong in understanding dropbox API. Also let me know if i have to provide more details.
I am doing one application.In that i want to store the data permanently in my iCloud account.If i use the icloud feature in my app,data is store into users iCloud account or developer icloud account.
With iCloud, apps can only access the user's iCloud account. The app can access whatever account the user has configured on their device, and there's no API for accessing any other account. The entire system is designed as a way for people to sync their data across multiple devices, so there's no option to share data or access other accounts in any way.
I'm not sure what you're trying to do, but if you're looking for some kind of server-side component for your app, there are lots of options. Parse is very popular, as is Azure, but there are many other services. If you're not prepared to set up your own server, you can integrate one of them. But your app will only access your iCloud account when it runs on your device.
Am writing an iPhone App in which I want to upload a text file from the iOS App to somewhere & I thought of using dropbox for it. I will upload the file to my dropbox ID from the App (i.e. the user won't be required to authenticate with his/her dropbox credentials). Is this possible? Dropbox API (I even tried GDrive API) asks for auth ; how do I give my dropbox credentials through code & upload the file to my dropbox account?
You must need Auth,otherwise in which account the file gets uploaded??
I don't think there is any other means to accomplish this except through OAuth.
Please refer to this framework that enables your app to access files from Dropbox without having to worry about the complexities of implementing a file browser, OAuth, or managing uploads and storage.