getPermissionUtil

Deprecated

Use KMPNotifier.permissionUtil. See MIGRATION.md.

Replace with

import com.mmk.kmpnotifier.KMPNotifier
KMPNotifier.permissionUtil

Returns permission util that can be used to check and ask notification permission However in Android you need to use in Activity like below:

val permissionUtil by permissionUtil() permissionUtil.askNotificationPermission() //this will ask permission in Android 13(API Level 33) or above, otherwise permission will be granted.

Return

PermissionUtil class instance