mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-04 18:02:55 +01: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