Add afterInvokeApp callback

Add `afterInvokeApp` callback. `afterInvokeApp`is invoked after app launched.