Skip to content
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

Camera permission text always display default text instead of custom. #106

Open
novavision opened this issue May 12, 2023 · 5 comments
Open
Labels
bug Something isn't working

Comments

@novavision
Copy link

novavision commented May 12, 2023

Description of the bug

Camera permission text always display default text instead of custom.

Reproduction steps

So, by default it's set to "Allow {App} to take thee pictures and record video?". I changed it in Project Settings > yasirkula > Native Camera but nothing chnaged on both iOS and Android builds. I found a closed issue here where were recommended to change the text in NCPostProcessBuild.cs. So I did but it didn't solve the problem on Android devices.

Platform specs

Please provide the following info if this is a Unity 3D repository.

  • Unity version: 2021.3.23*
  • Platform: Android
  • Device: Xiaomi K20 Pro
  • How did you download the plugin: Asset Store
@novavision novavision added the bug Something isn't working label May 12, 2023
@yasirkula
Copy link
Owner

Unity's Player Settings may be overriding those settings. Can you search Player Settings for that text to see if it exists?

@novavision
Copy link
Author

There is no option to set permission request text for Android, only for iOS and btw, that text didn't override Native Camera asset NCPostProcessBuild.cs text

@yasirkula
Copy link
Owner

Yes you can't change the text on Android. If they had added this option in the latest Android versions, then it's possible but I'm unaware of it.

@novavision
Copy link
Author

Ok, that's clear, but why modified values (in Project Settings and script) are not applied to Android permission text? As I said I still see the default text there.

@yasirkula
Copy link
Owner

Android permission text can't be modified which is why those text aren't applied to it. The Android operating system shows a fixed text while asking for permission, you can't change the text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants