My app uses iOS background services and performs some actions when moved to the background. I use Shinobi to display an animated graph which I refresh every second. Apps shouldn’t call any opengl functions in the background so I stop the graph redraws in applicationDidEnterBackground: - still the app crashes sometimes when moving to the background (very rarely, I cannot reproduce by myself, just see it in user’s stacktraces).
I found the following Apple page with the description of the problem:
and the following two solutions:
Now the question is - should I call glFinish() as Apple suggests or [[CCDirector sharedDirector] stopAnimation] as suggested in the StackOverflow post? As I don’t know what you do in the Shinobi code, I don’t know what the proper solution to this problem is. Thanks.