Ionic and Intent Activity setResult to the caller. How?

Hi All,
I’m using IONIC 3 amd my problem is:
an external Android activity is calling me expenting for a result. I need to tell Ionic (or Cordova) to setResult and return a value to the caller activity

In android, we can use intent filter to catch some requests(intents) from other app (and I’m able to do this with Ionic/Cordova)
and then get a result from it using onActivityResult callback.
The callee(child) activity can use setResult and finish to return a result to parent.
I don’t know how to return this result using Ionic/Cordova and typescript.
Is there any advice? Thanks.