finally added working conditional to disable alarm api functionality if alarm permissions are not set in a manifest