added register notification types fix for ios 8