Enable notifications from the application level


#1

Hello, does anyone know how to enable notifications for the application. I want to do this from the application level. The code below works for Android 8.0 + but for 7 no longer. I do not know where to place the application UID. I will be grateful for any help.

IntentLauncherAndroid.startActivityAsync(
    IntentLauncherAndroid.ACTION_APP_NOTIFICATION_SETTINGS,
    {
        "android.provider.extra.APP_PACKAGE": Constants.manifest.android.package
    }
)

I tried it but it does not work

IntentLauncherAndroid.startActivityAsync( 
    IntentLauncherAndroid.ACTION_APP_NOTIFICATION_SETTINGS,
    {
         "APP_PACKAGE": Constants.manifest.android.package,
         "APP_UID": Expo.Constants.installationId
    }
);

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.