Lyokone / flutterlocation

A Flutter plugin to easily handle realtime location in iOS and Android. Provides settings for optimizing performance or battery.
MIT License
1.1k stars 810 forks source link

Null check operator used on a null value when fetching permission on web app opened through messenger on phone. #959

Open Keatr0n opened 3 months ago

Keatr0n commented 3 months ago

Describe the bug When a flutter web app is launched on mobile through a third party app (tested on messenger) Location.instance.hasPermission() throws a null check operator used on a null value exception. I'm not too sure why, but I was able to narrow it down to location_web-5.0.1/lib/location_web.dart:44

Expected behavior No exception should be thrown and it should return permission denied.

Tested on:

zahidshaikh08 commented 1 month ago

Facing this issue on web app in chrome.