11

I am new to flutter and am trying to figure out if there is a way in flutter to write a file to iCloud (iOS) or google drive (Android). There seem to be APIs to do this in Swift/Android native dev, but I can't find anything in a flutter.

I essentially want my app to write on a text file in iCloud so that another install of the same app on a different phone by the same user can access that file. I'm trying to do this without my own cloud setup (no firebase etc, since it's so simple and small), so I thought iCloud/gDrive would be perfect.

Sukhi
  • 13,261
  • 7
  • 36
  • 53
tappotus
  • 121
  • 1
  • 4

3 Answers3

4

The icloud_storage package does upload and download with iCloud.

Dean
  • 974
  • 2
  • 17
  • 28
1

The googleapis package provides rudimentary support for the Drive API. You'd want to use the google_sign_in for authentication as shown here.

I looked into it a while back but didn't continue due to how young it looked.

I've got no experience with iCloud so I can't really help you there, but I think you'd need to write your own platform plugin or use an HTTP API, if one exists.

Michael Pfaff
  • 1,178
  • 1
  • 14
  • 24
0

I know that I'm late to the party but there is this module https://pub.dev/packages/file_picker I haven't used it myself but they seem to support iCloud

ykonda
  • 499
  • 6
  • 15