invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
629 stars 121 forks source link

[🐛] Validate server-side verification (SSV) callbacks not trigger #505

Closed minhchienwikipedia closed 6 months ago

minhchienwikipedia commented 6 months ago

What happened?

I was trying to verify the user reward when user was watching a video to get the reward successfully. I'm using useRewardedInterstitialAd, it works as well but the SSV callback did not trigger for me. How can I fix it or how can I check this issue?

Platforms

iOS, but have not tested behavior on Android

React Native Info

System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 60.44 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn
    npm: 9.6.1 - ~/.nvm/versions/node/v16.16.0/bin/npm
    Watchman: 2023.10.09.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      Android NDK: 21.4.7075529
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: javac 21 - /opt/homebrew/opt/openjdk/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: ^0.66.3 => 0.66.5 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Are your using Typescript?

package.json

"dependencies": {
        "@gorhom/bottom-sheet": "^4.3.1",
        "@invertase/react-native-apple-authentication": "^2.1.0",
        "@ptomasroos/react-native-multi-slider": "^2.2.2",
        "@react-native-async-storage/async-storage": "^1.17.4",
        "@react-native-camera-roll/camera-roll": "^5.0.4",
        "@react-native-community/clipboard": "^1.5.1",
        "@react-native-community/datetimepicker": "^3.5.2",
        "@react-native-community/hooks": "^2.6.0",
        "@react-native-community/netinfo": "^6.0.6",
        "@react-native-community/push-notification-ios": "^1.8.0",
        "@react-native-community/slider": "^4.1.12",
        "@react-native-community/toolbar-android": "^0.2.1",
        "@react-native-firebase/analytics": "^14.7.0",
        "@react-native-firebase/app": "^14.7.0",
        "@react-native-firebase/auth": "^14.7.0",
        "@react-native-firebase/crashlytics": "^14.7.0",
        "@react-native-firebase/database": "^14.7.0",
        "@react-native-firebase/dynamic-links": "^14.7.0",
        "@react-native-firebase/firestore": "^14.7.0",
        "@react-native-firebase/functions": "^14.7.0",
        "@react-native-firebase/messaging": "^14.7.0",
        "@react-native-firebase/perf": "^14.7.0",
        "@react-native-firebase/storage": "^14.7.0",
        "@react-native-google-signin/google-signin": "^7.0.0-alpha.3",
        "@react-native-masked-view/masked-view": "^0.2.8",
        "@react-navigation/bottom-tabs": "^5.11.8",
        "@react-navigation/native": "^5.1.6",
        "@react-navigation/stack": "^5.2.11",
        "@reduxjs/toolkit": "1.9.0",
        "axios": "^0.21.4",
        "cache": "^2.3.1",
        "chalk": "4.1.2",
        "clean": "^4.0.2",
        "color": "^3.1.3",
        "dayjs": "^1.11.0",
        "fbjs": "^0.8.18",
        "formik": "^2.2.9",
        "geofire-common": "^5.2.0",
        "hermes-engine": "^0.9.0",
        "i18n-js": "^3.5.1",
        "libphonenumber-js": "^1.9.44",
        "lodash": "^4.17.20",
        "lottie-ios": "3.2.3",
        "lottie-react-native": "4.1.3",
        "moment": "^2.24.0",
        "moti": "^0.18.0",
        "npm": "^7.6.1",
        "patch-package": "^6.4.7",
        "react": "17.0.2",
        "react-firebase-hooks": "^2.2.0",
        "react-firebase-pagination-hooks": "^1.0.0",
        "react-native": "^0.66.3",
        "react-native-admob-native-ads": "^0.6.6",
        "react-native-canvas": "^0.1.37",
        "react-native-cards-swipe": "^1.2.1",
        "react-native-circular-progress-indicator": "^2.0.6",
        "react-native-code-push": "^7.0.4",
        "react-native-component-kits": "^1.0.39",
        "react-native-detector": "^0.2.1",
        "react-native-device-info": "^8.4.5",
        "react-native-document-picker": "^8.1.3",
        "react-native-fast-image": "^8.5.11",
        "react-native-fbsdk-next": "^8.0.5",
        "react-native-fs": "^2.18.0",
        "react-native-geolocation-service": "^5.3.0-beta.1",
        "react-native-gesture-handler": "^1.10.1",
        "react-native-gifted-chat": "^0.16.3",
        "react-native-google-mobile-ads": "^12.6.0",
        "react-native-iap": "^12.10.5",
        "react-native-image-crop-picker": "^0.38.1",
        "react-native-image-picker": "^4.10.0",
        "react-native-in-app-review": "^3.1.0",
        "react-native-inappbrowser-reborn": "^3.6.3",
        "react-native-incall-manager": "^3.3.0",
        "react-native-interactable": "^2.0.1",
        "react-native-keyboard-aware-scroll-view": "^0.8.0",
        "react-native-linear-gradient": "^2.5.6",
        "react-native-localize": "^1.3.2",
        "react-native-marquee-view": "^1.0.5",
        "react-native-modalize": "^2.0.13",
        "react-native-parsed-text": "^0.0.22",
        "react-native-permissions": "^3.0.1",
        "react-native-pose": "^0.9.1",
        "react-native-reanimated": "^2.13.0",
        "react-native-reanimated-carousel": "^2.6.0",
        "react-native-restart": "0.0.20",
        "react-native-safe-area-context": "^0.7.3",
        "react-native-screens": "^2.5.0",
        "react-native-scrollable-tab-view": "^1.0.0",
        "react-native-shadow-2": "^7.0.8",
        "react-native-skeleton-placeholder": "^5.2.4",
        "react-native-sound": "^0.11.1",
        "react-native-sound-manager": "^1.0.9",
        "react-native-splash-screen": "^3.2.0",
        "react-native-svg": "^12.3.0",
        "react-native-swipe-up-down": "^1.1.6",
        "react-native-touch-id": "^4.4.1",
        "react-native-track-player": "^3.2.0",
        "react-native-vector-icons": "^6.6.0",
        "react-native-view-shot": "^3.1.2",
        "react-native-webrtc": "^106.0.0-beta.6",
        "react-native-webrtc-vad": "^1.1.8",
        "react-redux": "^7.2.5",
        "recyclerlistview": "^3.0.5",
        "redux": "^4.2.0",
        "redux-persist": "^6.0.0",
        "rxjs": "^7.0.1",
        "yup": "^0.32.9"
    },
    "devDependencies": {
        "@babel/core": "^7.12.9",
        "@babel/runtime": "^7.12.5",
        "@react-native-community/eslint-config": "^2.0.0",
        "@tsconfig/react-native": "^3.0.2",
        "@types/i18n-js": "^3.8.9",
        "@types/jest": "^29.5.10",
        "@types/react": "17.0.2",
        "@types/react-native": "0.66.3",
        "@types/react-native-vector-icons": "^6.4.18",
        "@types/react-test-renderer": "^18.0.7",
        "@typescript-eslint/eslint-plugin": "^6.13.1",
        "@typescript-eslint/parser": "^6.13.1",
        "babel-jest": "^26.6.3",
        "babel-plugin-module-resolver": "^4.0.0",
        "eslint": "7.14.0",
        "eslint-config-standard": "^14.1.0",
        "eslint-config-standard-react": "^9.2.0",
        "eslint-import-resolver-babel-module": "^5.1.2",
        "eslint-plugin-flowtype": "^4.5.2",
        "eslint-plugin-import": "^2.22.0",
        "husky": "^7.0.4",
        "jest": "^26.6.3",
        "metro-react-native-babel-preset": "^0.66.2",
        "react-test-renderer": "17.0.2",
        "typescript": "^4.1.3"
    },
    "jest": {
        "preset": "react-native"
    }

app.json

"react-native-google-mobile-ads": {
      "android_app_id": "ca-app-pub-",
      "ios_app_id": "ca-app-pub-",
      "delay_app_measurement_init": true
  }

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

minhchienwikipedia commented 6 months ago

It's working when I'm using RewardedInterstitialAd.createForAdRequest instead of that hook, can you please check the hook?

erenkulaksiz commented 2 months ago

Hello @minhchienwikipedia ,

I use that RewardedInterstitialAd.createForAdRequest function instead of hooks. But admob wont send a verification URL to my server. How did you made it work?

My account is verified on Admob, also added the URL and verified it. Added device to testing devices list. Is it a test device issue?