Questions tagged [androidsdk31]

15 questions
3
votes
1 answer

App crashes : Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

After updating targetsdk version to 31, the app is giving an error on pending intents. I have updated all the pending intents and then run the app. But the app is now crashing with this error Caused by: java.lang.IllegalArgumentException:…
Kishan Solanki
  • 13,761
  • 4
  • 85
  • 82
2
votes
0 answers

NFC Scan prompt an application selection window

My app is made in Xamarin Forms. I have just compiled my application with the Android 31 SDK, and when the application launches on a smartphone on Android 13, the NFC reading process shows me a window to select the application that can read the nfc…
2
votes
0 answers

React native - Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

I am developong a react native project which is using react-native: 0.63.3 and I was using SDK 30. But as in google play console it is requested minimum of SDK 31 I have updated it. Everythin in the code was running fine. But I don't receive andy…
Deepika
  • 737
  • 7
  • 23
2
votes
0 answers

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_IMMUTABLE be specified when creating a Pendingintent

I am facing this issue while upgrading the targetSDK to 31 (Android 12) I am using react native, A package called react-native-sms-retriver There is a PendingIntent used in PhoneNumberHelper.java final GoogleApiClient googleApiClient =…
1
vote
0 answers

React native app is installed but not opening after setting compileSdkVersion & targetSdkVersion to 31 (Android 12)

I am developing a react native app for both android and iOS. I was using compileSdkVersion & targetSdkVersion as 30. But as form November, a minimum sdk version as 31 is required to upload the project to google play console. So I have updated the…
Deepika
  • 737
  • 7
  • 23
0
votes
1 answer

"Cordova App Data Retrieval Issue After Upgrading to target-sdk=31 (Android 12)"

I have an Android app based on Cordova(10.x.x), which operates perfectly on target-sdk=30 (Android 11) and preceding versions. However, upon upgrading to target-sdk=31 (Android 12), the app experiences challenges in fetching data through HTTP GET…
Balty
  • 1
  • 2
0
votes
0 answers

Allow location android permission prompt not coming in ionic3 while using navigator.geolocation.getCurrentPosition()

I want the location prompt while opening the app having options to Allow location while using the app etc. Android permissions also applied in config.xml.I have applied the ACCESS_COARSE_LOCATION & ACCESS_FINE_LOCATION &…
0
votes
0 answers

Accessing files in public storage on Android 12 and above

I have an App that's been on the play store for about 6 years, and I just did an update and was required by Google to upgrade to at least SDK version 31. This App controls a device via Bluetooth and has been storing configuration files in…
AndyBeck
  • 31
  • 3
0
votes
0 answers

Increase Android splash screen icon for sdk 31 over 108dp

My designers are asking me if is posible to increase the icon size in the splash screen. According the documentation the image size must be 108dp But our client want to use a bigger image. There is some way to do this? Some workaround? Thanks!
Mark Comix
  • 1,878
  • 7
  • 28
  • 44
0
votes
0 answers

Close notification drawer after clicking button

My app creates a notification when some data is available. It has a button to copy that data to clipboard on the user's request. After doing so, the notification bar should close (without opening a new activity), so the user can paste the data they…
Philipp
  • 11,549
  • 8
  • 66
  • 126
0
votes
0 answers

Xamarin.Forms Android app crashing on splash screen of Android 12

I am currently testing my app with VS 2019. Works fine with android devices lower than android 12 but crashes on devices => android 12.I updated android target framework to Android 12. Application that is being deployed on Android 12 crashes on the…
Sikandar
  • 1
  • 1
0
votes
0 answers

Duplicate class found in modules jetified-guava-31.0.1-android and jetified-guava-primitives-r03

I have upgrade SDK to 31 And upgrade exoplayer to 2.18.1 compileSdkVersion 31 targetSdkVersion 31 Please help me to fix this issue
Rajesh
  • 135
  • 7
0
votes
0 answers

Android PendingIntent with FLAG_MUTABLE gives WrongConstant warning

I updated to targetSdkVersion 31 today and noticed that my pending intents for sleep, location, and activity transition stopped working. So instead of just using UPDATE_CURRENT, I changed to; int flags = PendingIntent.FLAG_UPDATE_CURRENT; if…
0
votes
0 answers

Android emulators (with SDK 31) not working after reopening the Android Studio

Recently I'm having a big & strange problem with android emulators (with SDK 31). When I create an emulator it works fine, but after I close the Android Studio and open next time, that emulator doesn't works, that won't even turning on, after…
Sk Suraj
  • 500
  • 2
  • 15
0
votes
0 answers

Prevent NFC Service app from opening when reading empty tag with enableReaderMode

Moving from the enableForgroundDispatch (I don't seem to get it working on api 32) intent based way of reading NFC-tags to enableReaderMode. The latter one works well, but every now and then the NFC Service app is opening, showing 'emtpy tag'…
Dan
  • 173
  • 2
  • 18