Skip to content

Commit 4d23688

Browse files
committed
code fix
1 parent e5f3f56 commit 4d23688

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Sample/Direct/LocalNotification.Sample.iOS/AppDelegate.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
2323
global::Xamarin.Forms.Forms.Init();
2424

2525
// if you want to handel push notifications
26-
//LocalNotificationCenter.SetCustomUserNotificationCenterDelegate(new CustomUserNotificationCenterDelegate());
27-
28-
// Ask the user for permission to show notifications on iOS 10.0+ at startup.
29-
// If not asked at startup, user will be asked when showing the first notification.
30-
LocalNotificationCenter.RequestNotificationPermission();
26+
LocalNotificationCenter.SetUserNotificationCenterDelegate();
27+
//LocalNotificationCenter.SetUserNotificationCenterDelegate(new CustomUserNotificationCenterDelegate());
3128

3229
//LocalNotificationCenter.RequestLocationPermission(iOSLocationAuthorization.WhenInUse);
3330

Sample/Direct/LocalNotification.Sample.iOS/LocalNotification.Sample.iOS.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<WarningLevel>4</WarningLevel>
2828
<ConsolePause>false</ConsolePause>
2929
<MtouchArch>x86_64</MtouchArch>
30-
<MtouchLink>SdkOnly</MtouchLink>
30+
<MtouchLink>None</MtouchLink>
3131
<MtouchDebug>true</MtouchDebug>
3232
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
3333
<OptimizePNGs>true</OptimizePNGs>

0 commit comments

Comments
 (0)