use window.pushNotificationHandler for callback