Closed n2ng-dev closed 4 years ago
As i see in the screenshot, you running on iOS, have you added the permission in infop.list ? Also are you running on an simulator ?
The part of the code responsible for this is : it seem like it detects that you have enabled the Location Service, but its not working
StreamBuilder(
stream: stream,
builder: (context, AsyncSnapshot<LocationStatus> snapshot) {
if (snapshot.connectionState == ConnectionState.waiting)
return LoadingIndicator();
if (snapshot.data.enabled == true) {
switch (snapshot.data.status) {
case GeolocationStatus.granted:
return QiblahCompassWidget();
case GeolocationStatus.denied:
return LocationErrorWidget(
error: "Location service permission denied",
callback: _checkLocationStatus,
);
case GeolocationStatus.disabled:
return LocationErrorWidget(
error: "Location service disabled",
callback: _checkLocationStatus,
);
case GeolocationStatus.unknown:
return LocationErrorWidget(
error: "Unknown Location service error",
callback: _checkLocationStatus,
);
default:
return Container();
}
} else {
return LocationErrorWidget(
error: "Please enable Location service",
callback: _checkLocationStatus,
);
}
},
)
I am closing this, as no information is provided.
I got Error Unknown Location Service error,![Simulator Screen Shot - iPhone 11 Pro Max - 2020-04-24 at 18 26 02](https://user-images.githubusercontent.com/12078569/80207862-32c1e280-8659-11ea-99d9-f874eb58d4a3.png)