Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thudugala committed Jun 29, 2023
1 parent e5f3f56 commit 4d23688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Sample/Direct/LocalNotification.Sample.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchArch>x86_64</MtouchArch>
<MtouchLink>SdkOnly</MtouchLink>
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
<OptimizePNGs>true</OptimizePNGs>
Expand Down

0 comments on commit 4d23688

Please sign in to comment.