applicationDidEnterBackground not being called?

I am attempting to make some “pause” calls from the applicationDidEnterBackground when a user backgrounds the app, or a txt/phone call comes in. However it doesnt seem to ever be called. My base sdk is 4.3 and my dev target is 4.1. Suggestions?

Oh, so sorry, I find the bug.
It’s done in yourGame/ios/AppController.mm, and doesn’t call into Classes/AppDelegate.cpp
Please move the “pause” calls into AppController.mm.
I will discuss this bug tomorrow, maybe the xcode template should be updated.

Thank you sir! That works.

I think I found another bug in the font handler. I will make a separate post about it in a moment.

Bug #667 created for this useless applicationDidEnterBackground. Prevent me from forget it tomorrow :slight_smile:

Hi!

You forgot to do it! Look at this https://github.com/cocos2d/cocos2d-x/blob/v3/templates/cpp-template-default/proj.ios_mac/ios/AppController.mm#L99