Hi guys
For a particular reason (I have a google play IAP plugin) I need to intercept calls to onActivityResult.
My solution to this was to override UnityPlayerNativeActivity, but in order to do that, I had to make it the default launcher activity, which skips UnityPlayerProxyActivity, causing new problems.
This simply doesn’t look like the right way of implementing this. So the solution would be to override UnityPlayerProxyActivity as well to make it look for my version of UnityPlayerNativeActivity. It just sounds like too much mess to achieve something so simple.
What I wish we had was a kind of listener that we could attach to the Native activity so that we can receive the callbacks without having to change Unity’s code.
I wonder if anyone else has been through the same and found a better solution.
All the best