Mobile App Payment Processor (Webview Listener And Notification Problems)

PROBLEM 1

Webview Listener works up to android 9 (SDK API:28).

After the payment process, the mobile application returns to the screen and the notification comes. no problem.

--------

In android 10 and above, the following onLoadStart function is called after the page.

Therefore, it does not return to the mobile app screen on the payment screen.

How can we call or solve onLoadStart in Android 10,11,12+ (SDK API: 29,30,31,32) and above versions?

.

.

      onLoadStart={(e) => {
        if (onNavigationStateChange) {
          onNavigationStateChange(e);
        }
      }}

.

.

.

PROBLEM 2

In android 12 (SDK API: 31) and above versions, the mobile application explodes when notification is received.

.

.

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE

.

.

I would be glad if you can help, good work.