Admob plugin - can setAppVolume and setAppMuted be implemented?

Hello,

thanks for integrating this feature of AdMob!

But why can I only set the parameter in the init-method? Wouldn’t it make more sense to have a “setVolume” method like in the native SDK? Because e.g. in my game when the user toggles the Mute button, I want to toggle the volume as well, and it should take effect before the next start of the app.

Best regards!

Hi,

That’s a valid point. The requested method will be added in the next plugin update. 

Hi, any news on this topic?

Best regards!

Hi bjoern,

Next plugin update planned to the next week, so that should be an ETA for a separate method too.

Hello karpovpw, Is the new plugin yet released or is it going to take more time? I really need to update my app with the feature to toggle between mute and full volume asap. Please link me to some documentation where this new plugin is explained.

Hi,

I will post to this thread as soon as an update will become public.

A new release is getting closer to finishing QA process, so it should be available this week. Stay tuned!

Hi,

the function is now in the public docs, however I still get an error when using it?

Best regards!

Hi, bjoern!

What do you mean by saying “still get an error”? Have you got it earlier? What’s the error we are talking about? Can you post a log or something?

Newest update is live and I’ve just checked new method - everything works as expected. One thing to note - make sure that you are using the latest and greatest Corona Simulator (anything above 3326 will be fine) to get the latest update for Admob plugin.

Oh my fault, the error only happens in Corona Simulator.

The error sounded to me like the plugin still does not know the new function, but it’s simply because the plugin is not supported in Simulator. (However, other functions like admob.init () only show a warning in Simulator but do not cause runtime errors).

ERROR: Runtime error main.lua:10: attempt to call field 'setVideoAdVolume' (a nil value)

That’s strange, it should be included in sim builds. Thanks for the feedback, we’ll fix it.