AppInstance->onReady() must be public