askNotificationPermission

fun askNotificationPermission(onResult: (Boolean) -> Unit = {})

Asks notification permission from user

Parameters

onResult

lambda is called when notification permission is returned