We call addObserverForName in C++ inside the IrisEvent.registerEventHandler in iOS/macOS, at this time, the IrisEvent.registerEventHandler is called after the createNativeApiEngine, if an addObserverForName is called inside the createNativeApiEngine, which may block our observer. To ensure our observer always calls first, so move IrisEvent.registerEventHandler above the _nativeIrisApiEngineBinding.initialize().
We call
addObserverForName
in C++ inside theIrisEvent.registerEventHandler
in iOS/macOS, at this time, theIrisEvent.registerEventHandler
is called after thecreateNativeApiEngine
, if anaddObserverForName
is called inside thecreateNativeApiEngine
, which may block our observer. To ensure our observer always calls first, so moveIrisEvent.registerEventHandler
above the_nativeIrisApiEngineBinding.initialize()
.