fix type to check push notification