Closed svenkeeter closed 7 years ago
Before iOS 10, you couldn't delete built-in apps, so the plugin just assumes it's there.
So it needs updating to check for presence of Apple Maps, just like for any other app.
Thank you for your prompt reply. I'll see what i can do about it or just wait for the fix 😃
It doesn't look like it's possible to detect if Apple Maps is installed or not, since removing it does not actually uninstall the app, it just hides the icon from the home screen.
I'm going by this SO question.
So it seems not possible to detect if Apple Maps is unavailable in advance (which is the exact intention of launchnavigator.availableApps()
.
The best that can be done is to gracefully handle the error when attempting to open Apple Maps using launchnavigator.navigate()
.
So I think this issue needs to be documented as a caveat rather than fixed as a bug.
Even when Apple Maps is uninstalled, running:
will always return it as available in iOS