Maybe registerNotificationHandler could give you a Registration object as result, where you then can do the unregister() ?