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;
}
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
add a comment |
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
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
add a comment |
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
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
ios swift push-notification apple-push-notifications
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting
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
add a comment |
Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting
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
add a comment |
Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting
Is means that the setting is not available to your app. You can find more information here: https://developer.apple.com/documentation/usernotifications/unnotificationsetting
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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