Add global variable to extract the intent extra. This works just if app is closed.