Users should always be in control of notifications. Allow users to disable or change notifications in your app’s settings.
Notifications for Mobile App
Nick Babich

Not sure about Android, but on iOS it’s a default setting of the OS. No app can force the notifications upon a user (well, besides Apple’s of course 😁)