Log which app was denied push permission

This commit is contained in:
Francesco Saltori 2021-08-24 18:59:36 +02:00 committed by Marvin W
parent e90ce370d4
commit 82d11e4e7a
1 changed files with 2 additions and 2 deletions

View File

@ -70,10 +70,10 @@ private suspend fun ensureAppRegistrationAllowed(context: Context, database: Gcm
context.startActivity(i)
}
if (!accepted) {
throw RuntimeException("Push permission not granted to app")
throw RuntimeException("Push permission not granted to $packageName")
}
} else if (app?.allowRegister == false) {
throw RuntimeException("Push permission not granted to app")
throw RuntimeException("Push permission not granted to $packageName")
}
}