set open type to launch or resumed depending on app state