I think it's possible, you just need to follow the instruction, and place this four function call somewhere in the C++ code.
If you create your JSB project in Cocos2d-JS 3.0, by default, it contains AppDelegate.h and AppDelegate.cpp in
frameworks/runtime-src/Classes, of course you can add your own c++ class into the project.
Note that you can't do this in JS level.
Let me know if you succeed on this. Thanks