Skip to content

Commit

Permalink
More carplay fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Jun 13, 2024
1 parent ca1137d commit 45cb6d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 1 addition & 7 deletions ProjectTemplates/ShinyApp/Platforms/iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ namespace ShinyApp;
public class AppDelegate : MauiUIApplicationDelegate
{
protected override MauiApp CreateMauiApp()
{
//#if (useappcenter)
ObjCRuntime.Runtime.MarshalManagedException += (s, a) =>
a.ExceptionMode = ObjCRuntime.MarshalManagedExceptionMode.UnwindNativeCode;
//#endif
return MauiProgram.CreateMauiApp();
}
=> MauiProgram.CreateMauiApp();

#if (usepush)
[Export("application:didRegisterForRemoteNotificationsWithDeviceToken:")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
using System;
using System.Runtime.Versioning;
using CarPlay;
using Foundation;
using UIKit;

namespace ShinyApp.iOS.CarPlayImplementation;


[SupportedOSPlatform("ios16.0")]
[UnsupportedOSPlatform("macos")]
[UnsupportedOSPlatform("maccatalyst")]
[Register("CarPlaySceneDelegate")]
public class CarPlaySceneDelegate : CPTemplateApplicationSceneDelegate
{
Expand Down
2 changes: 1 addition & 1 deletion ProjectTemplates/ShinyApp/Platforms/iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<key>UISceneClassName</key>
<string>CPTemplateApplicationScene</string>
<key>UISceneConfigurationName</key>
<string>ShinyApp</string>
<string>ShinyApp-Car</string>
<key>UISceneDelegateClassName</key>
<string>CarPlaySceneDelegate</string>
</dict>
Expand Down

0 comments on commit 45cb6d0

Please sign in to comment.