Черное знамя на кордове с посредничеством - PullRequest
0 голосов
/ 06 апреля 2020

Я получаю черный баннер на устройстве и в Firebase Test Lab.

Мы использовали основной плагин Appodeal GitHub для посредничества

при нажатии кнопок для тестирования мы не получаем рекламы на экране отображается только черный баннер.

   <script type="text/javascript">
      var app = {

       initialize: function() {
           document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
       },

       // deviceready Event Handler
       //
       // Bind any cordova events here. Common events are:
       // 'pause', 'resume', etc.
       onDeviceReady: function() {
        alert('Ready');
         this.receivedEvent('deviceready');

         appodealprime.ready();

       },
       receivedEvent: function(id) {
       }
    // show banner
          // appodealprime.showBanner();


    };


       function showBanner()
       {
           appodealprime.showBanner();
       }
       function showRewardedVideo()
       {
           appodealprime.showRewardedvideo('xxx');
       }
       function showInterstitial()
       {
           appodealprime.showInterstitial('xxx');
       }

     app.initialize();
     </script>

    <button id="rewarded" onclick="showRewardedVideo();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Rewarded Video</button>
    <button id="showBanner" onclick="showBanner();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Show Banner</button>
    <button id="hideBanner" onclick="hideBanner();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Hide Banner</button>

    <button id="interstitial" onclick="showInterstitial();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Interstitial</button>

в конфигурации. xml файл, эти плагины добавляются

<plugin name="cordova-appodeal-prime" source="npm" spec="1.0.1" >
    <variable name="ANDROID_APP_KEY" value="xxxxxx" />
</plugin>
<plugin name="cordova-plugin-multidex"  spec="0.1.4" />

с использованием последней версии cli-9.0.0.

сборка выполнена успешно, но вместо показа объявления на баннере отображается черный цвет.

** все значения заполнены ключами. я предполагаю, что это связано с кодом, может быть устройство уже?

...