Skip to content

Commit

Permalink
- print logs ShoutSocial#2 to follow the error.
Browse files Browse the repository at this point in the history
  • Loading branch information
saadabouelsooud committed Aug 31, 2022
1 parent 15465ef commit 915c9d1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,17 @@ public class SwiftShareHandlerIosPlatform: NSObject, FlutterPlugin, FlutterStrea
let api : ShareHandlerApi & NSObjectProtocol = instance
ShareHandlerApiSetup(messenger, api)

print("inside register after ShareHandlerApiSetup messenger:\(messenger) api: \(api)")


let eventsChannel = FlutterEventChannel(name: kEventsChannel, binaryMessenger: messenger)
print("inside register eventsChannel: \(eventsChannel)")

eventsChannel.setStreamHandler(instance)

registrar.addApplicationDelegate(instance)
print("end register")

}

public func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink) -> FlutterError? {
Expand Down

0 comments on commit 915c9d1

Please sign in to comment.