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

Create GLKView before binding it and resuming #1869

Merged
merged 1 commit into from
Jul 11, 2015
Merged

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jul 9, 2015

Or: don’t resume the map until the application has entered the foreground.

UIApplicationWillEnterForegroundNotification is posted before UIApplicationDidBecomeActiveNotification, while the application is still in the background. That caused -createGLView to bail but did not cause the rest of -wakeGL: to bail. We would create the GLKView only after attempting to bind it (a no-op), resulting in a black view.

Fixes #1855. Fixes #1460 real good.

/cc @incanus @friedbunny

@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS labels Jul 9, 2015
@1ec5 1ec5 self-assigned this Jul 9, 2015
@friedbunny
Copy link
Contributor

Awesome work on tracking this sneaky bastard down.

@1ec5
Copy link
Contributor Author

1ec5 commented Jul 10, 2015

Thanks, now I just need to figure out why the tests fail on Travis. Something’s up…

Or: don’t resume the map until the application has entered the foreground.

UIApplicationWillEnterForegroundNotification is posted before UIApplicationDidBecomeActiveNotification, while the application is still in the background. That caused -createGLView to bail but did not cause the rest of -wakeGL: to bail. We would create the GLKView only after attempting to bind it (a no-op), resulting in a black view.

Fixes #1855.
@incanus
Copy link
Contributor

incanus commented Jul 20, 2015

A+ work here @1ec5.

max0060embttm00290x249

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants