HyperSDK Events
Listen to events from HyperSDK
Android Hardware Back-Press Handling
HyperSDK Native Module will be emitting all the relevant events to JS via notifyListeners and JavaScript modules can then register to receive events by invoking addListener on the HyperServices Plugin instance with the event name 'HyperEvent'. The listener will return a JSON response.
The following events should be handled here:
HyperSDK internally uses an android fragment for opening the bank page and will need the control to hardware back press when the bank page is active. This can be done by invoking addEventListener on the backButton provided by React Capacitor.
If the blocking asynchronous call HyperServices.onBackPressed() returns true, HyperSDK will handle the back press, else merchant can handle itFollowing are the Life cycle events which SDK needs