Open fobos531 opened 10 months ago
@fka3 I believe this is an issue upstream in Square's implementation. Can this be fixed upstream? I would very much like to target SDK 34.
Hello!
Thank you, we confirmed that this crash is happening when targetSdkVersion=34
and device is running Android 14 (api 34).
We’re currently working on a proper fix in Reader SDK library, but don’t have an ETA on when it will be ready.
Meanwhile you can use following workaround to fix the issue:
In your custom Application
class - the one that calls ReaderSdk.initialize(this)
- add following
@Override
public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU
&& receiver != null
&& receiver.getClass().getName().startsWith("com.squareup.")) {
// Hotfix for Reader SDK not working on Android 14. Always use RECEIVER_EXPORTED.
return super.registerReceiver(receiver, filter, RECEIVER_EXPORTED);
} else {
return super.registerReceiver(receiver, filter);
}
}
We are also facing the same issue in our custom Android application using Square Reader SDK API :14 & Target:34. Kindly do needful or any workaround because our square users are madly behind square products.
Hello @harshil-vyas08
Square has just released 1.7.6 of Android SDK which should fix this https://developer.squareup.com/docs/changelog/mobile-logs/2024-08-07
Describe the issue
When trying to open Reader settings on React Native 0.73, I get this:
To Reproduce
Initialize an empty project. Add Reader SDK. Authorize with Reader SDK. Try to open Reader Settings.
Expected behavior
I should see reader settings normally.
Environment (please complete the following information):