ios - (Push Notification) When I call getNotificationSettings alertSetting is returning NotSupported





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















When I call



UNUserNotificationCenter.current().getNotificationSettings


the alertSetting is returning "Not Supported". Here is the callback.



Notification settings: <UNNotificationSettings: 0x17408be50; authorizationStatus: Authorized, notificationCenterSetting: Enabled, soundSetting: Enabled, badgeSetting: Enabled, lockScreenSetting: Enabled, **alertSetting: NotSupported**, carPlaySetting: Enabled, alertStyle: Banner>


What does that means?



I'm testing on an iPhone with iOS 10.3.2.










share|improve this question























  • It means the user has all kinds of notification settings enabled EXCEPT for displaying alerts.. So when they receive a notification, they get a badge, a banner, etc.. but they will NOT get an alert on the lock-screen or in-app. Depending on what permissions you've requested, this may work. To get it to not show "Not Supported", go to settings and change it from just banners to banners and alerts for notifications..

    – Brandon
    Nov 23 '18 at 14:27













  • Do you mean Settings -> Notifications -> My app -> Alerts? I have done that but didn't work. This really don't let my app to receive push notifications on lock-screen? I just want to get "Enable"...

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:06




















0















When I call



UNUserNotificationCenter.current().getNotificationSettings


the alertSetting is returning "Not Supported". Here is the callback.



Notification settings: <UNNotificationSettings: 0x17408be50; authorizationStatus: Authorized, notificationCenterSetting: Enabled, soundSetting: Enabled, badgeSetting: Enabled, lockScreenSetting: Enabled, **alertSetting: NotSupported**, carPlaySetting: Enabled, alertStyle: Banner>


What does that means?



I'm testing on an iPhone with iOS 10.3.2.










share|improve this question























  • It means the user has all kinds of notification settings enabled EXCEPT for displaying alerts.. So when they receive a notification, they get a badge, a banner, etc.. but they will NOT get an alert on the lock-screen or in-app. Depending on what permissions you've requested, this may work. To get it to not show "Not Supported", go to settings and change it from just banners to banners and alerts for notifications..

    – Brandon
    Nov 23 '18 at 14:27













  • Do you mean Settings -> Notifications -> My app -> Alerts? I have done that but didn't work. This really don't let my app to receive push notifications on lock-screen? I just want to get "Enable"...

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:06
















0












0








0








When I call



UNUserNotificationCenter.current().getNotificationSettings


the alertSetting is returning "Not Supported". Here is the callback.



Notification settings: <UNNotificationSettings: 0x17408be50; authorizationStatus: Authorized, notificationCenterSetting: Enabled, soundSetting: Enabled, badgeSetting: Enabled, lockScreenSetting: Enabled, **alertSetting: NotSupported**, carPlaySetting: Enabled, alertStyle: Banner>


What does that means?



I'm testing on an iPhone with iOS 10.3.2.










share|improve this question














When I call



UNUserNotificationCenter.current().getNotificationSettings


the alertSetting is returning "Not Supported". Here is the callback.



Notification settings: <UNNotificationSettings: 0x17408be50; authorizationStatus: Authorized, notificationCenterSetting: Enabled, soundSetting: Enabled, badgeSetting: Enabled, lockScreenSetting: Enabled, **alertSetting: NotSupported**, carPlaySetting: Enabled, alertStyle: Banner>


What does that means?



I'm testing on an iPhone with iOS 10.3.2.







ios swift push-notification apple-push-notifications






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 13:37









Bruno Rodrigues de AndradeBruno Rodrigues de Andrade

515




515













  • It means the user has all kinds of notification settings enabled EXCEPT for displaying alerts.. So when they receive a notification, they get a badge, a banner, etc.. but they will NOT get an alert on the lock-screen or in-app. Depending on what permissions you've requested, this may work. To get it to not show "Not Supported", go to settings and change it from just banners to banners and alerts for notifications..

    – Brandon
    Nov 23 '18 at 14:27













  • Do you mean Settings -> Notifications -> My app -> Alerts? I have done that but didn't work. This really don't let my app to receive push notifications on lock-screen? I just want to get "Enable"...

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:06





















  • It means the user has all kinds of notification settings enabled EXCEPT for displaying alerts.. So when they receive a notification, they get a badge, a banner, etc.. but they will NOT get an alert on the lock-screen or in-app. Depending on what permissions you've requested, this may work. To get it to not show "Not Supported", go to settings and change it from just banners to banners and alerts for notifications..

    – Brandon
    Nov 23 '18 at 14:27













  • Do you mean Settings -> Notifications -> My app -> Alerts? I have done that but didn't work. This really don't let my app to receive push notifications on lock-screen? I just want to get "Enable"...

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:06



















It means the user has all kinds of notification settings enabled EXCEPT for displaying alerts.. So when they receive a notification, they get a badge, a banner, etc.. but they will NOT get an alert on the lock-screen or in-app. Depending on what permissions you've requested, this may work. To get it to not show "Not Supported", go to settings and change it from just banners to banners and alerts for notifications..

– Brandon
Nov 23 '18 at 14:27







It means the user has all kinds of notification settings enabled EXCEPT for displaying alerts.. So when they receive a notification, they get a badge, a banner, etc.. but they will NOT get an alert on the lock-screen or in-app. Depending on what permissions you've requested, this may work. To get it to not show "Not Supported", go to settings and change it from just banners to banners and alerts for notifications..

– Brandon
Nov 23 '18 at 14:27















Do you mean Settings -> Notifications -> My app -> Alerts? I have done that but didn't work. This really don't let my app to receive push notifications on lock-screen? I just want to get "Enable"...

– Bruno Rodrigues de Andrade
Nov 23 '18 at 18:06







Do you mean Settings -> Notifications -> My app -> Alerts? I have done that but didn't work. This really don't let my app to receive push notifications on lock-screen? I just want to get "Enable"...

– Bruno Rodrigues de Andrade
Nov 23 '18 at 18:06














1 Answer
1






active

oldest

votes


















1














Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting






share|improve this answer
























  • How do I enable the setting?

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:07











  • Going to Settings > <Your app name> > Notifications

    – Bruno Guidolim
    Nov 23 '18 at 21:54












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53447750%2fios-push-notification-when-i-call-getnotificationsettings-alertsetting-is-re%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting






share|improve this answer
























  • How do I enable the setting?

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:07











  • Going to Settings > <Your app name> > Notifications

    – Bruno Guidolim
    Nov 23 '18 at 21:54
















1














Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting






share|improve this answer
























  • How do I enable the setting?

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:07











  • Going to Settings > <Your app name> > Notifications

    – Bruno Guidolim
    Nov 23 '18 at 21:54














1












1








1







Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting






share|improve this answer













Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 15:06









Bruno GuidolimBruno Guidolim

1316




1316













  • How do I enable the setting?

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:07











  • Going to Settings > <Your app name> > Notifications

    – Bruno Guidolim
    Nov 23 '18 at 21:54



















  • How do I enable the setting?

    – Bruno Rodrigues de Andrade
    Nov 23 '18 at 18:07











  • Going to Settings > <Your app name> > Notifications

    – Bruno Guidolim
    Nov 23 '18 at 21:54

















How do I enable the setting?

– Bruno Rodrigues de Andrade
Nov 23 '18 at 18:07





How do I enable the setting?

– Bruno Rodrigues de Andrade
Nov 23 '18 at 18:07













Going to Settings > <Your app name> > Notifications

– Bruno Guidolim
Nov 23 '18 at 21:54





Going to Settings > <Your app name> > Notifications

– Bruno Guidolim
Nov 23 '18 at 21:54




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53447750%2fios-push-notification-when-i-call-getnotificationsettings-alertsetting-is-re%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Academy of Television Arts & Sciences

L'Équipe

1995 France bombings