I need to customize “Application” in order to invoke registerActivityLifecycleCallbacks() method from Application onCreate(). So far, I don’t see the onCreate() getting called. I have done the following.
- Added application.android.ts in “app” folder. The content of the file is from this page.
Added a console.log() statement in onCreate() method.
- Edited AndroidManifest.xml om app\App_Resources folder to change the value of “android:name” attribute in tag.
- Do “tns run android”. Application is freshly launched but no console message.
Thanks for your help.