Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Guard against over calling pause or resume - #8465

Merged
boundsj merged 2 commits into
release-ios-v3.5.0-android-v5.0.0from
boundsj-guard-pause-resume
Mar 19, 2017
Merged

boundsj merged 2 commits into
release-ios-v3.5.0-android-v5.0.0from
boundsj-guard-pause-resume

Conversation

@boundsj

@boundsj boundsj commented Mar 18, 2017

Copy link
Copy Markdown
Contributor

Fixes #8464

Calls to the file source pause and resume method are triggered by UIApplicationDidEnterBackgroundNotification and UIApplicationWillEnterForegroundNotification notifications. Testing has shown that those notifications may happen more than once on device. This adds a local guard to protect against unbalanced calls to pause and resume.

boundsj added 2 commits March 17, 2017 23:24
Calls to the file source pause and resume method are triggered by
UIApplicationDidEnterBackgroundNotification and
UIApplicationWillEnterForegroundNotification notifications. Testing
has shown that those notifications may happen more than once
on device. This adds a local guard to protect against unbalanced
calls to pause and resume.
@boundsj boundsj added crash iOS Mapbox Maps SDK for iOS release blocker Blocks the next final release ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Mar 18, 2017
@boundsj boundsj added this to the ios-v3.5.0 milestone Mar 18, 2017
@boundsj boundsj self-assigned this Mar 18, 2017
@mention-bot

Copy link
Copy Markdown

@boundsj, thanks for your PR! By analyzing this pull request, we identified @1ec5, @jfirebaugh and @friedbunny to be potential reviewers.

@boundsj boundsj removed the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Mar 19, 2017
@boundsj
boundsj merged commit 73ed8aa into release-ios-v3.5.0-android-v5.0.0 Mar 19, 2017
@boundsj
boundsj deleted the boundsj-guard-pause-resume branch March 19, 2017 02:09
@boundsj

boundsj commented Mar 20, 2017

Copy link
Copy Markdown
Contributor Author

I filed https://openradar.appspot.com/31154381 as a dupe of https://openradar.appspot.com/14075101. In our case, the unexpected, multiple instances of UIApplicationWillEnterForegroundNotification were fatal until the patch in this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

crash iOS Mapbox Maps SDK for iOS release blocker Blocks the next final release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants