removed vibrate and network_state permissons
do not show notification if type is undefined