MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getRewardedUnavailableReason

Function getRewardedUnavailableReason

src/lib/adRewards.js:320–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 return Boolean(!config.HAS_PRO && admob?.RewardedAd && adUnitIdRewarded);
319 },
320 getRewardedUnavailableReason() {
321 if (config.HAS_PRO) {
322 return "Ads are already disabled on this build.";
323 }
324 if (!admob?.RewardedAd) {
325 return "Rewarded ads are unavailable on this device.";
326 }
327 return "";
328 },
329 canRedeemNow() {
330 return {
331 ok: Boolean(state.canRedeem),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected