@@ -36,7 +36,7 @@ public final class AirshipReactNative: NSObject, Sendable {
3636 AirshipProxy . shared
3737 }
3838
39- public static let version : String = " 26.1 .0 "
39+ public static let version : String = " 26.2 .0 "
4040
4141 private let eventNotifier = EventNotifier ( )
4242
@@ -45,18 +45,22 @@ public final class AirshipReactNative: NSObject, Sendable {
4545
4646 @objc
4747 public func setNotifier( _ notifier: ( ( String , [ String : Any ] ) -> Void ) ? ) {
48+ AirshipLogger . trace ( " AirshipReactNative setNotifier called. Enabled: \( notifier != nil ) " )
4849 let wrappedNotifier = AirshipUnsafeSendableWrapper ( notifier)
4950 self . serialQueue. enqueue { @MainActor in
5051 if wrappedNotifier. value != nil {
52+ AirshipLogger . trace ( " AirshipReactNative notifier registered. " )
5153 await self . eventNotifier. setNotifier {
5254 wrappedNotifier. value ? ( AirshipReactNative . pendingEventsEventName, [ : ] )
5355 }
5456
5557 if AirshipProxyEventEmitter . shared. hasAnyEvents ( ) {
58+ AirshipLogger . trace ( " AirshipReactNative has pending events; notifying. " )
5659 await self . eventNotifier. notifyPendingEvents ( )
5760 }
5861
5962 AirshipProxy . shared. push. presentationOptionOverrides = { request in
63+ AirshipLogger . trace ( " AirshipReactNative presentation override request received. " )
6064 guard self . overridePresentationOptionsEnabled else {
6165 request. result ( options: nil )
6266 return
@@ -89,6 +93,7 @@ public final class AirshipReactNative: NSObject, Sendable {
8993 )
9094 }
9195 } else {
96+ AirshipLogger . trace ( " AirshipReactNative notifier cleared. " )
9297 await self . eventNotifier. setNotifier ( nil )
9398 AirshipProxy . shared. push. presentationOptionOverrides = nil
9499 self . clearPendingPresentationRequests ( )
@@ -117,6 +122,7 @@ public final class AirshipReactNative: NSObject, Sendable {
117122
118123 @MainActor
119124 func onLoad( ) {
125+ AirshipLogger . trace ( " AirshipReactNative onLoad. " )
120126 AirshipProxy . shared. delegate = self
121127 try ? AirshipProxy . shared. attemptTakeOff ( )
122128
@@ -130,6 +136,7 @@ public final class AirshipReactNative: NSObject, Sendable {
130136
131137 @objc
132138 public func onListenerAdded( eventName: String ) {
139+ AirshipLogger . trace ( " AirshipReactNative listener added: \( eventName) " )
133140 guard let type = try ? AirshipProxyEventType . fromReactName ( eventName) else {
134141 return
135142 }
0 commit comments