Skip to content

Commit

Permalink
chore(IT Wallet): [SIW-772] Add BLE permissions for iOS and `Andr…
Browse files Browse the repository at this point in the history
…oid` (#5352)
  • Loading branch information
hevelius committed Dec 19, 2023
1 parent 8feb31f commit ff8f59e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
23 changes: 22 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@
<!-- Required for local notifications -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />

<!-- Request legacy Bluetooth permissions on older devices. -->
<uses-permission android:name="android.permission.BLUETOOTH"
android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"
android:maxSdkVersion="30" />

<!-- Needed only if your app looks for Bluetooth devices.
If your app doesn't use Bluetooth scan results to derive physical
location information, you can
<a href="#assert-never-for-location">strongly assert that your app
doesn't derive physical location</a>. -->
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />

<!-- Needed only if your app makes the device discoverable to Bluetooth
devices. -->
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />

<!-- Needed only if your app communicates with already-paired Bluetooth
devices. -->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:requestLegacyExternalStorage="true" android:theme="@style/AppTheme">

<!-- START Required by react-native-push-notification -->
Expand Down Expand Up @@ -126,4 +147,4 @@
</activity>
</application>

</manifest>
</manifest>
6 changes: 4 additions & 2 deletions ios/ItaliaApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
<key>NSAppleMusicUsageDescription</key>
<string>The app needs NSAppleMusicUsageDescription permission</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>The app needs NSBluetoothAlwaysUsageDescription permission</string>
<string>IO needs access to Bluetooth to allow you to search and exchange data with the verification app</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>The app needs NSBluetoothPeripheralUsageDescription permission</string>
<string>IO need access to Bluetooth to allow you to search and exchange data with the verification app</string>
<key>NSCalendarsUsageDescription</key>
<string>So that you’ll be able to add deadlines to your calendar and set a reminder.</string>
<key>NSCameraUsageDescription</key>
Expand All @@ -89,6 +89,8 @@
<string>You’ll be able to save bonuses, certificates and upload screenshots or payment notices.</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>The app needs NSSpeechRecognitionUsageDescription permission</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Our app uses bluetooth to find, connect and transfer data between different devices</string>
<key>UIAppFonts</key>
<array>
<string>TitilliumWeb-Black.ttf</string>
Expand Down
3 changes: 2 additions & 1 deletion ios/ItaliaApp/it.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
"NSFaceIDUsageDescription" = "IO ha necessità di accedere a Face ID per permetterti di effettuare un'autenticazione più veloce";
"NSPhotoLibraryUsageDescription" = "Potrai salvare bonus e certificati, caricare screenshot e avvisi di pagamento.";
"NSMicrophoneUsageDescription" = "IO ha necessità di accedere al microfono nel caso in cui desideri mandare una nota vocale";
"NSPhotoLibraryAddUsageDescription" = "Potrai salvare immagini dall'app sul tuo dispositivo.";
"NSPhotoLibraryAddUsageDescription" = "Potrai salvare immagini dall'app sul tuo dispositivo.";
"NSBluetoothAlwaysUsageDescription" = "IO ha necessità di accedere al Bluetooth per permetterti di cercare e scambiare dati con app di verifica";

0 comments on commit ff8f59e

Please sign in to comment.