-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add NSAppleMusicUsageDescription permission to play audio messages to… #20264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jo-mut : according to https://developer.apple.com/documentation/bundleresources/information_property_list/nsapplemusicusagedescription this permission is to read from music library so we should adjust the message in info.plist accordingly
Also would be nice to revert the entry from StatusImTest/info.plist
Jenkins BuildsClick to see older builds (8)
|
ios/StatusIm/Info.plist
Outdated
@@ -82,6 +82,8 @@ | |||
<string>Photos access is required to give you the ability to save images.</string> | |||
<key>NSPhotoLibraryUsageDescription</key> | |||
<string>Photos access is required to give you the ability to send images.</string> | |||
<key>NSAppleMusicUsageDescription</key> | |||
<string>Play audio messages</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be A message that tells the user why the app is requesting access to the user’s media library
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siddarthkay and do we really use the music lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean I am not really aware of why we use the media lib, do you know at least i could write a more informative message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my assumption is most likely because we request permission to media library here :
Line 19 in 5559599
'MediaLibrary', |
media includes both images + music.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, its not just music. thats right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was added in react-native-permissions
library here -> zoontek/react-native-permissions@001f633 which strengthens my assumption that media permission require us to add NSAppleMusicUsageDescription
in info.plist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am currently looking to see if we actually need the permission as you have suggested, this pr however should be ready, you could approve it so I can run the e2e tests in the meantime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm e2e tests wont help us though. since this is iOS specific. e2e will only validate Android.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to ask @status-im/mobile-qa to take a look at PR build on iOS after you make the changes
3940052
to
30c3928
Compare
also relevant -> zoontek/react-native-permissions#266 (comment)
|
ios/StatusIm/Info.plist
Outdated
@@ -82,6 +82,8 @@ | |||
<string>Photos access is required to give you the ability to save images.</string> | |||
<key>NSPhotoLibraryUsageDescription</key> | |||
<string>Photos access is required to give you the ability to send images.</string> | |||
<key>NSAppleMusicUsageDescription</key> | |||
<string>Read media files</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<string>Read media files</string> | |
<string>Status uses Media Library to save and send Images. The Media Library module internally requires permissions to Apple Music.</string> |
30c3928
to
d978b74
Compare
I think for now its best to just include the public string and if we need to remove the medialib later because its not necessary we can do that on develop |
d978b74
to
6f6f8aa
Compare
86% of end-end tests have passed
Not executed tests (1)Failed tests (3)Click to expandClass TestDeepLinksOneDevice:
Class TestWalletMultipleDevice:
Expected to fail tests (4)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestWalletOneDevice:
Passed tests (44)Click to expandClass TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestDeepLinksOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestWalletOneDevice:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
|
fixes #20234
Summary
This seems to be a permission required by apple store because we have the feature to play audio messages
status: ready