mirror of https://github.com/YTVanced/VancedMicroG
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