I\'m building a react native module, from my module I send a PendingIntent like this.
Intent postAuthorizationIntent = new Intent(\"com.example.HANDLE_AUTHOR
I had this same issue and fixed it by calling super.onNewIntent(intent)
from MainActivity
:
@Override
public void onNewIntent(Intent intent) {
setIntent(intent);
super.onNewIntent(intent);
}
With this in place, onNewIntent
is called in your module - assuming your module implements ActivityEventListener
and you've registered it as a listener in the constructor:
reactContext.addActivityEventListener(this);