Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 7bde6d9

Browse files
committed
Specify badge auth option.
1 parent fa20cfe commit 7bde6d9

File tree

1 file changed

+3
-3
lines changed
  • WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS

1 file changed

+3
-3
lines changed

WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS/AppDelegate.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void RegisterForRemoteNotifications()
3131
if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
3232
{
3333
UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert |
34-
UNAuthorizationOptions.Sound |
34+
UNAuthorizationOptions.Badge |
3535
UNAuthorizationOptions.Sound,
3636
(granted, error) =>
3737
{
@@ -42,8 +42,8 @@ void RegisterForRemoteNotifications()
4242
else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
4343
{
4444
var pushSettings = UIUserNotificationSettings.GetSettingsForTypes(
45-
UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound,
46-
new NSSet());
45+
UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound,
46+
new NSSet());
4747

4848
UIApplication.SharedApplication.RegisterUserNotificationSettings(pushSettings);
4949
UIApplication.SharedApplication.RegisterForRemoteNotifications();

0 commit comments

Comments
 (0)