mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-06-09 22:58:20 +02:00
Log which app was denied push permission
This commit is contained in:
parent
e90ce370d4
commit
82d11e4e7a
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user