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

Create GLKView before binding it and resuming - #1869

Merged
1ec5 merged 1 commit into
masterfrom
1ec5-bg-000000-1855
Jul 11, 2015
Merged

1ec5 merged 1 commit into
masterfrom
1ec5-bg-000000-1855

Conversation

@1ec5

@1ec5 1ec5 commented Jul 9, 2015

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Awesome work on tracking this sneaky bastard down.

@1ec5

1ec5 commented Jul 10, 2015

Copy link
Copy Markdown
Contributor Author

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

incanus commented Jul 20, 2015

Copy link
Copy Markdown
Contributor

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