Differentiate between ephemeral state and app state

How to tell the difference between ephemeral and app state.