-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] flutter: scheduleTask ERROR: PlatformException #107
Comments
Please review iOS Setup |
thanks for answering. I have already reviewed this setup several times. This is my complete Info.plist: ` BGTaskSchedulerPermittedIdentifiers com.transistorsoft.customtask com.transistorsoft.fetch CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier ${PRODUCT_BUNDLE_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName EconomizaRR CFBundlePackageType APPL CFBundleShortVersionString $(MARKETING_VERSION) CFBundleSignature ???? CFBundleVersion $(CURRENT_PROJECT_VERSION) LSApplicationQueriesSchemes googlechromes comgooglemaps waze LSRequiresIPhoneOS NSCameraUsageDescription Para escanear o código de barras NSLocationAlwaysUsageDescription Para consultar o estabelecimento mais próximo de você NSLocationWhenInUseUsageDescription Para consultar o estabelecimento mais próximo de você UIBackgroundModes fetch processing remote-notification UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance ` |
Here's my XCode log after Launch from Background Fetch:
|
You're not doing this on a simulator, are you? The simulator doesn't work well with new fetch API. Best to test on a real device. |
do not. iPhone 7 real |
Here is the new problem. It is using the example build iPhone 8 plus with iOS 13.4.
|
@RYANCOAL9999 are you executing this in the iOS simulator? |
No, I am using the real iPhone 8 plus. |
@RYANCOAL9999 Did you Configure |
yes, it is added. I am using your project's example. |
@RYANCOAL9999 I just cloned this repo and launched the |
I did that too: I cloned the repo and lanched the /example, but it didn't work in the real iphone 7 device. |
|
I have no issues on iPhone 6s @ 13.4.1. |
what is your sdk flutter configuration and other plugins? |
Flutter sdk cannot affect this. Only iOS version / device settings. This error comes directly from iOS:
|
yes, The flutter sdk can not effect this. I just cloned this repo and launched the /example app in this repo. But, my testing error is not Failed to submit task request: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)". My testing error is [VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: PlatformException(1, null, null). May be the this example is miss some steps ? |
And the big Flutter exception is thrown on purpose by the plugin because iOS said |
Why?? |
because he indicated this warning when updating the pod (pod install): !] Automatically assigning platform |
same problem.
|
I have no idea. iOS says this. You can |
Guys, I found one thing: the project initially comes standard with iOS version 8.0. When I run the app in Xcode, with this version, it does not report any errors (although it does not run the service in the background at any time of the day). However, when I change the version to 13.4, the referred error of this topic appears. I know that it was informed that background-fetch is obsolete, but has not yet been discontinued in iOS 13, but there must be a problem, as it only presents this exception when moving to the most current version. |
@kleber-rr |
Doctor summary (to see all details, run flutter doctor -v): [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • No issues found! |
Have you tried the |
yes. |
yes to all your questions. I have restarted the mac several times. however today, I once again, running the code through xCode, got the following result:
|
I've never heard of this. I don't thing this is directly related to the plugin.
Both the fetch task It seems your original issue is solved.
|
Your Environment
flutter info
,flutter doctor
):Flutter 1.15.21-pre.22 • channel master • https://github.com/flutter/flutter.git
Framework • revision 37a93a7ad9 (2 weeks ago) • 2020-03-12 17:06:02 -0400
Engine • revision 1aaf169882
Tools • Dart 2.8.0 (build 2.8.0-dev.13.0 17eec5bcde)`
To Reproduce
Steps to reproduce the behavior:
Debug logs
None
$ adb logcat
Additional context
Add any other context about the problem here.
I have this problem only on IOS. Whenever I activate "Start due to a background search event" in xcode and run the application, it reports this error at startup.
I also read and implemented the recommendations in "See the iOS setup guide"
Sometimes, this error does not appear (rarely), but notifications are not displayed and there are no errors. Even when I start the app normally, it doesn't display any errors.
Any idea what it might be?
The text was updated successfully, but these errors were encountered: