yasirkula / UnityNativeCamera

A native Unity plugin to take pictures/record videos with device camera on Android & iOS
MIT License
600 stars 71 forks source link

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

Open novavision opened 1 year ago

novavision commented 1 year ago

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.

yasirkula commented 1 year ago

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

novavision commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.