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

setMuted() method is not working [Interstitial Ads] #4860

Open
MonuCarpenter opened this issue Oct 18, 2024 · 3 comments
Open

setMuted() method is not working [Interstitial Ads] #4860

MonuCarpenter opened this issue Oct 18, 2024 · 3 comments

Comments

@MonuCarpenter
Copy link

MonuCarpenter commented Oct 18, 2024

   await AppLovinMAX.initialize(env.APPLOVIN_SDK_KEY)
   await AppLovinMAX.setMuted()
   await AppLovinMAX.loadInterstitial(interstitialAdUnitId)

tried setMuted but ads are not getting muted

or guide me if i'm doing something wrong here..

Copy link

There has been no recent activity and this issue has been marked inactive.

@MonuCarpenter
Copy link
Author

@danielsogl Interstitial Ads don't work if we use setMuted!!!!
Viewed
@@ -66,7 +66,7 @@ export const useApplovinInterstitialAdSetup = ({

  try {
    await AppLovinMAX.initialize(env.APPLOVIN_SDK_KEY) //@ts-ignore
    await AppLovinMAX.setMuted(true)
    await AppLovinMAX.loadInterstitial(interstitialAdUnitId)
  } catch (error) {
    console.log("Applovin Initialize Error: ", error)

app/hooks/use-applovin-rewarded-ad-setup.ts

  • 1
    − 1
    Viewed
    @@ -50,7 +50,7 @@ export const useApplovinRewardedAdSetup = ({
    await Promise.all([
    console.log("getting ready for setting up the user id"),
    AppLovinMAX.setUserId(user.id), //@ts-ignore
    AppLovinMAX.setMuted(true),
    console.log("set-upped the user id"),
    AppLovinMAX.loadRewardedAd(rewardedAdUnitId),
    console.log("rewarded ad got loaded"),

@MonuCarpenter MonuCarpenter reopened this Jan 2, 2025
@MonuCarpenter
Copy link
Author

For rewarded it works fine but on android not in iOS..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant