Square POS integration stopped working on Android 12

My app is built using React Native and uses Square POS integration using react-native-square-pos library.

Recently I’ve discovered that the integration stopped working on one of my devices after upgrading to Android 12. An attempt to execute a charge intent fails as if the Square POS app is not installed.

The failing piece of code is apparently this:

The issue is not reproducible on older versions of Android. I suspect this has something to do with enhanced privacy controls on Android 12. Is this a known issue? Is there a workaround?