Coder Social home page Coder Social logo

Comments (5)

alexrabin avatar alexrabin commented on May 26, 2024

Looking into it. Unknown if this https://developer.apple.com/forums/thread/90204 has anything to do with it

from flutternativedraganddrop.

getBoolean avatar getBoolean commented on May 26, 2024

I think the problem is that the UTI given by iCloud for APKs is not a subtype of kUTTypeData, but it is when dropped from local storage and Dropbox. I just tested it and it worked when replacing kUTTypeData with kUTTypeItem. It's worth noting kUTTypeItem will also allow Directories to be dropped.

Item https://web.archive.org/web/20190621082935/https://developer.apple.com/documentation/mobilecoreservices/uttype/uti_abstract_types

Data https://web.archive.org/web/20190621082952/https://developer.apple.com/documentation/mobilecoreservices/uttype/uti_concrete_types

from flutternativedraganddrop.

alexrabin avatar alexrabin commented on May 26, 2024

I think the problem is that the UTI given by iCloud for APKs is not a subtype of kUTTypeData, but it is when dropped from local storage and Dropbox. I just tested it and it worked when replacing kUTTypeData with kUTTypeItem. It's worth noting kUTTypeItem will also allow Directories to be dropped.

Item https://web.archive.org/web/20190621082935/https://developer.apple.com/documentation/mobilecoreservices/uttype/uti_abstract_types

Data https://web.archive.org/web/20190621082952/https://developer.apple.com/documentation/mobilecoreservices/uttype/uti_concrete_types

What I can do is add an option to detect the kuttypeitem in the perform drop method but in the can drop method only check for the actual file type so it won't allow directories

from flutternativedraganddrop.

alexrabin avatar alexrabin commented on May 26, 2024

I was able to get iCloud apk file to work when you add apk has a custom extension. When you just have the DropDataType.file with no extension the iCloud apk doesn't register that it can be dropped

from flutternativedraganddrop.

alexrabin avatar alexrabin commented on May 26, 2024

@getBoolean I published v0.0.3 with a fix. Just specify the extension and you should be good to go.

from flutternativedraganddrop.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.