Skip to content

Commit 81a7410

Browse files
committed
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)
1 parent 3791566 commit 81a7410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/Classes/OneSignalPlugin.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#import "OSFlutterSession.h"
3434
#import "OSFlutterLocation.h"
3535
#import "OSFlutterInAppMessages.h"
36+
#import "OSFlutterLiveActivities.h"
3637

3738

3839
@interface OneSignalPlugin ()
@@ -70,7 +71,7 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
7071
[OSFlutterSession registerWithRegistrar:registrar];
7172
[OSFlutterLocation registerWithRegistrar:registrar];
7273
[OSFlutterInAppMessages registerWithRegistrar:registrar];
73-
74+
[OSFlutterLiveActivities registerWithRegistrar:registrar];
7475
}
7576

7677
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {

0 commit comments

Comments
 (0)