"This Feature is not available on this device" While asking DND permission
How can we check whether the device has DND feature or not or any other solution please..
I am using below code to get DND permission
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M&& !notificationManager.isNotificationPolicyAccessGranted()) {Intent intent = new Intent(android.provider.Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS);startActivity(intent);}
The device I am using has Oreo and nougat.
Best Answer
This feature doesn't seems to be available on all versions of Oreo. For example on "Oreo Go Edition" on a Wiko Lenny 5, I don't have it either.
Many users may encounter the message 'this feature is not available on this device' when trying to access a specific feature or function. This can be frustrating, but there are several reasons why this may occur.
Firstly, it is possible that the device being used is not compatible with the feature. Different devices have different capabilities, and certain features may require specific hardware or software that is not available on all devices.
Another possible reason is that the feature may be disabled or not activated on the device. Users should check the device settings or preferences to ensure that the feature is enabled and properly configured.
If the feature is supposed to be available on the device but still doesn't work, it could be due to a software or firmware issue. Keeping the device updated with the latest software patches and firmware updates can often resolve such issues.
If none of the above solutions work, it is recommended to consult the device's user manual or contact the manufacturer's support for further assistance in troubleshooting the issue.