[Bug]: deprecated plugin warnings during build and "LOCATION UPDATE FAILURE:Error reason: (null)Error description: The operation couldn’t be completed. (kCLErrorDomain error 0.)" error #1546
Labels
type: enhancement
New feature or request
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
/Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.m:40:31: warning: 'authorizationStatus' is deprecated: first deprecated in macOS 11.0 [-Wdeprecated-declarations]
return [CLLocationManager authorizationStatus];
^~~~~~~~~~~~~~~~~~~
authorizationStatus
In module 'CoreLocation' imported from /Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.h:11:
^
/Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.m:47:65: warning: 'authorizationStatus' is deprecated: first deprecated in macOS 11.0 [-Wdeprecated-declarations]
CLAuthorizationStatus authorizationStatus = CLLocationManager.authorizationStatus;
^~~~~~~~~~~~~~~~~~~
authorizationStatus
In module 'CoreLocation' imported from /Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.h:11:
^
/Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.m:47:65: warning: 'authorizationStatus' is deprecated: first deprecated in macOS 11.0 [-Wdeprecated-declarations]
CLAuthorizationStatus authorizationStatus = CLLocationManager.authorizationStatus;
^~~~~~~~~~~~~~~~~~~
authorizationStatus
In module 'CoreLocation' imported from /Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.h:11:
^
/Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.m:107:1: warning: implementing deprecated method [-Wdeprecated-implementations]
^
In module 'CoreLocation' imported from /Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/PermissionHandler.h:11:
^
4 warnings generated.
/Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/LocationServiceStreamHandler.m:36:1: warning: implementing deprecated method [-Wdeprecated-implementations]
^
In module 'CoreLocation' imported from /Users/o.halukkarakaya/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/macos/Classes/Handlers/LocationServiceStreamHandler.m:9:
^
(It was working, i didn't change anything but just upgraded flutter sdk)
Expected results
not geting warnings during build and geting geo location data without any error
Actual results
warnings printed, couldn't get geo location
Code sample
These warning and error message printed out:
Code sample
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
^12.0.0
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: