joutvhu / open_file_plus

A plug-in that can call native APP to open files with string result in flutter, support iOS(UTI) / android(intent) / PC(ffi) / web(dart:html)
https://pub.dev/packages/open_file_plus
BSD 3-Clause "New" or "Revised" License
5 stars 11 forks source link

Document viewer not presenting in iOS #11

Closed shebin-tw closed 1 year ago

shebin-tw commented 1 year ago

Document viewer not presenting in iOS

shebin-tw commented 1 year ago

This issue was due to the viewController taking inside this plugin by this code UIViewController *viewController = [UIApplication sharedApplication].delegate.window.rootViewController;

which wont work in my case as my project is native app + flutter as plugin..

I changed the viewController instance. and things started working for me