There is 2 ways to set the preview setting for app's notifications: using global or per app switch.
I try to get current value for showPreviewsSetting on iPhone runung iOS 11.2.1 (15С153).
But every time it ignores all the real settings and returns "Always" as long as the app setting matches the global switch (so if globally it set ot "Never" and in app settings you see "Never (Default)" it still says "Always" in the showPreviewsSetting).
Only if app setting is different from global it returns app setting value.
I've tryed to get the setting before and after asking notifications permissions and got the same result.
Am I doing somthing wrong?