OK, please don't use these two events. launchapp may launch an app in background so it's not 'current app'.
Use appopen/appopened event.