我有一个问题是让“OneSignal”网络推送通知在移动Chrome浏览器上工作,它在PC上按预期工作,但是,这里是代码:

<script>
      var OneSignal = window.OneSignal || [];
      OneSignal.push(function() {
        OneSignal.init({
          appId: "xxxxxxxxxx",
          autoRegister: false, 
          notifyButton: {
            enable: false,
          },
        }); 

      }); 


    </script>

<script>
        var OneSignal = window.OneSignal || [];
        OneSignal.push(function() {
          OneSignal.on('subscriptionChange',function (isSubscribed) { 
               // if subscribed sends tags
               if (isSubscribed) {
                   window.userPushed = true;
                   OneSignal.sendTag("table", "wasadds_22",function(tagsSent) {
                       console.log(tagsSent);
                   });
               }

          });

          var isPushSupported = OneSignal.isPushNotificationsSupported();

          if (isPushSupported) { 
             //if supported checks if enabled and shows propmpt if is not enabled
              OneSignal.isPushNotificationsEnabled().then(function(isEabled) { 
                  if (isEabled) { 
                      console.log('push notifications are enabled');
                      window.userPushed = true;
                  }else{ 

                      swal({
                        title: 'Subscribe and get benefits!',
                        text: "Press allow ",
                        type: 'success',
                        showCancelButton: true,
                        confirmButtonColor: '#3085d6',
                        cancelButtonColor: '#d33',
                        confirmButtonText: 'Yes, Lets Do it!'
                      }).then((result) => {
                          if (result.value) { 
                              // if user agrees the push prompt shows up
                              OneSignal.registerForPushNotifications();
                              OneSignal.setSubscription(true);
                          }
                      }); 

                  }

              })
          }; 








      });

    </script>

所以移动Chrome浏览器的问题是,当我尝试触发推送通知时,它没有以任何方式做出反应订阅提示它不会显示它,并且没有错误,也没有autoRegister也不起作用,请帮忙