Open Asad0473 opened 1 year ago
Yes, this is what federated plugins are about, all current Flutter plugins that support various platforms are expected to use this structure.
Yes, I removed that file. Flutter moved from Android embedding v1 to v2 gradually, less and less plugins and apps used the old one, so it no longer gets generated these days. I don't have it, either, but it remained in the repo. Even when it was used, it was generated automatically.
I'm glad to hear it works for you but then we didn't solve the problem this time around, either. :-) Anyway, I can only ask anybody who still experiences this issue to put a breakpoint or a log write into that registerWith()
to see whether it gets called and executed properly.
Facing the same problem with mac-OS.
I know the plugin is for web, and we are also building a website. When we deploy our website, such error occurs of target platform unsupported.
Then please, read the comment just above and try to apply a breakpoint or a log write to see.
Had a similar issue that I resolved by running 'flutter clean'
I encountered it once, also on MacOS. Didn't tweak anything, just built the flutter web once again and the error is gone.
Facing the same problem with mac-OS.
I know the plugin is for the web, and we are also building a website. When we deploy our website, such an error occurs of the target platform is unsupported.
same, only after deployment.
for me, setting the web renderer to canvaskit when building for release solved my problem. But still don't know what exactly caused the problem.
flutter build web --web-renderer html --release
works for me.
i got same, but
flutter build web --web-renderer html --release
NOT works for me.
May I reiterate my message from Feb 18? We won't be able to find it out without somebody actually seeing this problem looking into the breakpoint mentioned there...
Had a similar issue that I resolved by running 'flutter clean'
NB
DropzoneView: TargetPlatform.windows is not supported.
-My project only web project not desktop or android, ios. -There is no error log. -Working localhost but hosting firebase and real devices, browsers don't work.
Please, have a look at https://github.com/deakjahn/flutter_dropzone/issues/61#issuecomment-1433883055
I'm running into this same issue as well
I'm not sure how to go about the 61 comment you referenced @deakjahn. Can you break it down? My case is exactly as has been explained above. I'm using canvas kit
Update: On further reading, I understand better now, but not fully. As the error only occurs in deployed sites, how do we debug that function?
@DavidOrakpo As you probably found in that comment, the problem is not directly in the plugin but in Flutter not calling it when it should. As I never was able to reproduce it, I can't really determine anything until somebody whole actually experiences the issue can debug it.
This shouldn't be that hard, all browsers have very large and sophisticated Developer Tools (Ctrl+Shift+I or F12). You could find the code mentioned above and put a breakpoint, much like in any other programming environment.
We're not yet sure whether https://github.com/deakjahn/flutter_dropzone/pull/89 solves this. Could those of you who have problems with this try that modification?
I am using this library in my web app not desktop app but I am still facing this issue . its working fine in debug mode but when we go to live server or you say release mode i am facing this issue