Decide when to prompt for notification permission.
&&
function shouldPromptForNotifications(hasAsked, hasPendingSwap) { // TODO }