contactlutforrahman / flutter_qr_bar_scanner

A full screen mobile scanner for scanning QR Code and Bar Code.
MIT License
33 stars 66 forks source link

Package contains UIWebView - Depreciated #33

Open Neillbar opened 3 years ago

Neillbar commented 3 years ago

When i try to publish my app with this package i get this error ->

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability.

Will this be fixed or patched ?

Thanks

contactlutforrahman commented 3 years ago

Thanks for reporting the bug. I will look into it soon.

contactlutforrahman commented 3 years ago

I'm sorry but I didn't use UIWebView in the package.

Neillbar commented 3 years ago

I'm sorry but I didn't use UIWebView in the package.

Hi, i have created a brand new project with only your package in it and received the rejection message from apple.

I dont mind if you want to do a skype/google meet call then i can show you as well ?

Maybe it has something to do with the framework you are utilizing ?

contactlutforrahman commented 3 years ago

can you generate apk by this command - flutter build apk

Neillbar commented 3 years ago

can you generate apk by this command - flutter build apk

This is for ios builds not for android.

So this happens when i publish my app to my apple connect store.

kwonhyuck0218 commented 3 years ago

I find this command line. grep -r UIWebView Pods/ Binary file Pods//GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision matches

AlexOliveira123 commented 3 years ago

any solution? same problem here.

MisterWeeMan commented 3 years ago

Hi @contactlutforrahman, the issue occurs because iOS is using GoogleMobileVision/BarcodeDetector (file flutter_qr_bar_scanner/ios/flutter_qr_bar_scanner.podspec). In order to migrate from this deprecated API you should follow this doc.

Rahman8captech commented 3 years ago

Hi, can you please fix this Issue The plugin flutter_qr_bar_scanner uses a deprecated version of the Android embedding. To avoid unexpected runtime failures or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are a plugin author, take a look at the docs for migrating the plugin to the V2 embedding: doc

contactlutforrahman commented 3 years ago

Please try to understand. There's no such issue. I've used this package in a live project just 3 days ago and I didn't find such issue. You can try with a fresh new project for testing purpose.

mathsilva-dev commented 3 years ago

@contactlutforrahman the problem is not to use, but in upload the project for Apple Store when he uses flutter_qr_bar_scanner.

The answer of apple is:

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

And when i search for this in my project with command: grep -r UIWebView . i received this response:

matheus@MacBook-Pro-de-matheus projects % grep -r UIWebView . Binary file ./project_name/ios/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision matches

And when i remove flutter_qr_bar_scanner of my project and search with same command, received this response:

matheus@MacBook-Pro-de-matheus projects % grep -r UIWebView . matheus@MacBook-Pro-de-matheus projects %

So, this package uses GoogleMobileVision and he cause a error because apple store dont accept more the UIWebView whe us do the app upload.

diyarfaraj commented 3 years ago

Having exact same issue. I'm unable to upload new apps to Appstore because of this issue.

Would be great if we get a fix, please.

Rahman8captech commented 3 years ago

I'm facing this issue on the iOS device but it is working fine on iOS Simulator when I'm removing this package I'm not facing this UIKit API Thread ..

[Assert] Unsupported use of UIKit API off the main thread: UIAccessibilityIsAssistiveTouchRunning()
[Assert] Unsupported use of UIKit API off the main thread: UIAccessibilityIsGuidedAccessEnabled()
2021-09-03 14:22:53.764331+0100 Runner[7644:733911] [Assert] Unsupported use of UIKit API off the main thread: UIAccessibilityIsGuidedAccessEnabled()
mathsilva-dev commented 3 years ago

I can run the project on iOS Simulator and my device, iPhone XR, but my only problem is when i need upload my app on AppStore, because, like i related, this package uses GoogleMobileVision and AppStore dont accept more he, because is deprecated.

Rahman8captech commented 3 years ago

do you have fixed this issue?

mathsilva-dev commented 2 years ago

@contactlutforrahman Do you have fixed this issue dude?

This lib is the best i used to read payments barcode.

contactlutforrahman commented 2 years ago

The issue has been resolved. You can check with the latest version.

mathsilva-dev commented 2 years ago

The issue has been resolved. You can check with the latest version.

Ooooh thanks man. I testing and fully works in apple store again.