mapbox/vision-ios-examples

Handling sign detection with .unkown country

Closed this issue · 1 comments

Description

iPhone xs with ios 12.2 in minsk office detects country as .unknown instead of .other which causes crash on assert in demo>demo>Signs.swift:15.
iPhone 8 with ios 12.1.4 detects country correctly.

Goal

Fix detection to be .other

Steps

  • Find out the reason;
  • Fix.

Turned out that the reason of wrong detection was that there was no permission for using gps location, so the .unknown country is the right behavior. But if it is right behavior it shouldn't fail on assert