How to access title & body text from a notification event?

answer can be found here Foreground notifications when app is opened contain empty data