- Home /
Question by
MichaelAsaraf · Oct 07, 2015 at 02:25 PM ·
iospluginsnative plugin
Handle sound inside native unity iOS plugin
I developed a unity iOS plugin
I want this plugin to mute the hosting app sound when invoked and turn it back up when it finish
How can i do it in the code?
In the native code i get the hosting unity view controller like this:
UnityGetGLViewController()
How can i mute and unmute the sound when getting back to app?
I know about "UnitySendMessage" but i don't have the lib-phone.lib in my plugin so i can't call it from there
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612040353im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to place UI over native iOS view? 1 Answer
Custom swift framework in Unity iOS game 0 Answers
unity iOS bug - Duplicate native method found 1 Answer
Countdown Timer 1 Answer
Releasing plugin in script 0 Answers