diff --git a/Sample/Direct/LocalNotification.Sample.iOS/AppDelegate.cs b/Sample/Direct/LocalNotification.Sample.iOS/AppDelegate.cs index 2b1af0bb..81e33bca 100644 --- a/Sample/Direct/LocalNotification.Sample.iOS/AppDelegate.cs +++ b/Sample/Direct/LocalNotification.Sample.iOS/AppDelegate.cs @@ -23,11 +23,8 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options) global::Xamarin.Forms.Forms.Init(); // if you want to handel push notifications - //LocalNotificationCenter.SetCustomUserNotificationCenterDelegate(new CustomUserNotificationCenterDelegate()); - - // Ask the user for permission to show notifications on iOS 10.0+ at startup. - // If not asked at startup, user will be asked when showing the first notification. - LocalNotificationCenter.RequestNotificationPermission(); + LocalNotificationCenter.SetUserNotificationCenterDelegate(); + //LocalNotificationCenter.SetUserNotificationCenterDelegate(new CustomUserNotificationCenterDelegate()); //LocalNotificationCenter.RequestLocationPermission(iOSLocationAuthorization.WhenInUse); diff --git a/Sample/Direct/LocalNotification.Sample.iOS/LocalNotification.Sample.iOS.csproj b/Sample/Direct/LocalNotification.Sample.iOS/LocalNotification.Sample.iOS.csproj index a5cc0c16..8f03a3b1 100644 --- a/Sample/Direct/LocalNotification.Sample.iOS/LocalNotification.Sample.iOS.csproj +++ b/Sample/Direct/LocalNotification.Sample.iOS/LocalNotification.Sample.iOS.csproj @@ -27,7 +27,7 @@ 4 false x86_64 - SdkOnly + None true HttpClientHandler true