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

Fix prompting for location permission #491

Merged
merged 1 commit into from
Apr 4, 2019

Conversation

troy-lamerton
Copy link
Contributor

@troy-lamerton troy-lamerton commented Apr 3, 2019

Fixed use of the prompt boolean.

If the authorization status of location permission is 'when in use' then the always allow prompt was being shown by one signal - even when the prompt parameter is false.

This PR enforces the correct conditions to request location permission.


This change is Reviewable

@jkasten2
Copy link
Member

jkasten2 commented Apr 3, 2019

@troy-lamerton Thanks for digging in and making this PR! I left some comments about if these are the correct permissionStatus values to be checked.

@jkasten2
Copy link
Member

jkasten2 commented Apr 4, 2019

I confirmed this fixes the issue of prompting for background location if only the foreground position is accepted when the app is cold started the next time.

@jkasten2 jkasten2 merged commit 7fbff43 into OneSignal:master Apr 4, 2019
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.

None yet

2 participants