Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom error handling for the ITMGeolocationManager #95

Merged
merged 5 commits into from
Aug 1, 2024

Conversation

cezaris13
Copy link
Contributor

Problem:
In our app, instead of getting Toast message Please approve required permissions to show your location., we want to show alert, with the option to open the app settings:
image

Solution
Added customErrorHandler variable, which can be set externally.
If the variable is null, the Toast is used.

@cezaris13 cezaris13 requested a review from a team as a code owner July 31, 2024 10:32
@CLAassistant
Copy link

CLAassistant commented Jul 31, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@toddsouthenbentley toddsouthenbentley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Please see my suggestions, hope they make sense.

@tcobbs-bentley
Copy link
Member

@cezaris13: Everything looks fine visually. I'm going to test it locally with the sample app to make sure nothing breaks, and assuming everything is OK I will then approve this PR.

@tcobbs-bentley tcobbs-bentley merged commit 5f29ccb into iTwin:main Aug 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants