Patching registerForNotificationTypes().

It didn't work properly on newer iOS devices/OSes.