fixed handler in notification service and made it display message only when app is on foreground