Skip to content

Commit

Permalink
fix: Stats bug in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jan 15, 2024
1 parent 26c2a95 commit bb63f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Runner/Handlers/StatsEventHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class StatsEventHandler: NSObject, FlutterPlugin, FlutterStreamHandler, L

public static func register(with registrar: FlutterPluginRegistrar) {
let instance = StatsEventHandler()
instance.channel = FlutterEventChannel(name: Self.name, binaryMessenger: registrar.messenger())
instance.channel = FlutterEventChannel(name: Self.name, binaryMessenger: registrar.messenger(), codec: FlutterJSONMethodCodec())
instance.channel?.setStreamHandler(instance)
}

Expand Down

0 comments on commit bb63f69

Please sign in to comment.