From 81a7410c265f73552e1b8915df93bab9e6a8bc06 Mon Sep 17 00:00:00 2001 From: Nan Date: Wed, 20 Mar 2024 14:10:17 -0700 Subject: [PATCH] register the live activities module * Fixes this error when the live activity methods were called: - Unhandled Exception: MissingPluginException(No implementation found for method OneSignal#enterLiveActivity on channel OneSignal#liveactivities) --- ios/Classes/OneSignalPlugin.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/Classes/OneSignalPlugin.m b/ios/Classes/OneSignalPlugin.m index 5bffdb3..4b55991 100644 --- a/ios/Classes/OneSignalPlugin.m +++ b/ios/Classes/OneSignalPlugin.m @@ -33,6 +33,7 @@ #import "OSFlutterSession.h" #import "OSFlutterLocation.h" #import "OSFlutterInAppMessages.h" +#import "OSFlutterLiveActivities.h" @interface OneSignalPlugin () @@ -70,7 +71,7 @@ + (void)registerWithRegistrar:(NSObject*)registrar { [OSFlutterSession registerWithRegistrar:registrar]; [OSFlutterLocation registerWithRegistrar:registrar]; [OSFlutterInAppMessages registerWithRegistrar:registrar]; - + [OSFlutterLiveActivities registerWithRegistrar:registrar]; } - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {