Added "permission" function and option

Added permission function and option to allow testing to see if
notifications are blocked by default.