fixed bug in push notifications type detection