-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
AUDIO_SESSION_MICROPHONE not work #67
Comments
The added section looks correct to me. I'm not sure exactly what may be causing this for you, although I do notice that
is different from my example:
Not sure if that makes any difference. One other thing that may be useful is others have reported that even without adding the above code, but instead adding the missing key to |
The above content is automatically generated by the flutter tools After many attempts, apple still replied to the same content Using the vlidate app provided with Xcode, no problems were reported: App "xxx" successfully validated. Your apo successfullv passed all validation checks. |
XCODE pod --version flutter --version |
We may need to wait until there is more than one report of this to know whether it is an audio_session bug. Until then, my previous advice should apply. |
grep -r recordPermission 建议:
把这些也全都加上条件编译。 苹果的扫描可能是直接字符串匹配,即使我们用的是苹果系统的API方法已经加了条件编译,但是可能我们自定义方法,但是苹果可能不那么认为。
|
I had to google translate that but are you saying that maybe Apple is doing simple string matching and incorrectly picking up the name of one of the plugin's own methods? Feel free to experiment by renaming the method if that's the case, I would be interested to hear if that works for you. |
It's just a guess, and I'm not sure. I'll try it next time. |
Hi! I'm using
Also didn't work - I still received warning from apple while uploading to TestFlight. Temporary fixed by adding to plist, but I'm not sure it's a clean fix :-) |
The fix was introduced in v0.1.3 and verified as working. Can you report whether the bug is present if you downgrade to that version? |
It started working after I added
to Podfile also. Didn't check v0.1.3, but I think I'll go with this Podfile now as it's working w/o adding key to plist:
|
Maybe you are using some other plugin that gave you separate instructions to add @hc2088 is that also the case for you? Is this issue because you're also using another plugin that requires you to disable its microphone code? |
Unlike my case, There is no error of cocoapods. I didn't use PERMISSION_MICROPHONE . What I encountered was that after uploading apple, the IPA package failed to pass the verification. My later solution was in info Plist add "Privacy - Microphone Usage Description" |
As far as I can see, it could certainly be the same in your case.
That is the same in both cases.
That is also consistent in both cases. In other words, maybe your app is using another plugin that has its own requirements for what you must add to the Podfile, and so you can't get it to work by just following the requirements of one plugin, you must follow the requirements of all plugins that you use. That is why in @AlekseiAfanasev 's case both |
audio_session: ^0.1.8
Here is what I added:
but appconnect reply:
ITMS-90683: Missing Purpose String in Info.plist - Your app‘s code references one or more APIs that access sensitive user data. The app‘s Info.plist file should contain a NSMicrophoneUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources
The text was updated successfully, but these errors were encountered: