Skip to content

Commit a2469da

Browse files
authored
Do not ask for location on Windows even though no location feature is used
Workaround for: Baseflow#1394
1 parent 753824b commit a2469da

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

permission_handler_windows/windows/permission_handler_windows_plugin.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class PermissionHandlerWindowsPlugin : public Plugin {
6565
winrt::fire_and_forget IsBluetoothServiceEnabled(std::unique_ptr<MethodResult<>> result);
6666

6767
winrt::Windows::Devices::Geolocation::Geolocator geolocator;
68-
winrt::Windows::Devices::Geolocation::Geolocator::PositionChanged_revoker m_positionChangedRevoker;
6968
};
7069

7170
// static
@@ -87,10 +86,6 @@ void PermissionHandlerWindowsPlugin::RegisterWithRegistrar(
8786
}
8887

8988
PermissionHandlerWindowsPlugin::PermissionHandlerWindowsPlugin(){
90-
m_positionChangedRevoker = geolocator.PositionChanged(winrt::auto_revoke,
91-
[this](Geolocator const& geolocator, PositionChangedEventArgs e)
92-
{
93-
});
9489
}
9590

9691
PermissionHandlerWindowsPlugin::~PermissionHandlerWindowsPlugin() = default;

0 commit comments

Comments
 (0)