仔细阅读文档,下边的都是废话。

为了省事,iOS和Android 提供了所有了参数,需要那个了修改传参。

//ios  actionURL为自定义参数
         
           $.ajax({
              type : "POST",
             url:_basePath + "/------.html",
             data:{"testing":"1","type":"groupcast","title":"推送标题","subtitle":"","body":"推送内容"
                 ,"description":"","actionURL":""
                 ,"device_tokens":"","app_version":"","launch_from":"","not_launch_from":"","alias_type":"","alias":"","tag":""
                 ,"badge":"","sound":"","available":"","category":""
                 ,"policy":"","start_time":"","expire_time":""},
             dataType : "JSON",
              success : function(res) {
                  alert(res);
                }
                
            });
         
          
        
          //Android   go_custom 可以设置自定义参数,没有参数打不开app,只想打开app 只能用go_app 
           $.ajax({
             type : "POST",
             url:_basePath + "/-------.html",
              dataType : "JSON",
                  data:{"testing":"1","type":"groupcast","ticker":"tuisong","title":"挑剔","text":"内容","description":""   
                        ,"after_open": "go_custom", "url":"https://www.baidu.com","activity":"","custom":"","device_tokens":""
                        ,"app_version":"","alias_type":"","alias":"","tag":"北京市北京市海淀区"
                        ,"policy":"","start_time":"","expire_time":"","out_biz_no":"","launch_from":"","not_launch_from":""
                        ,"sound":"","play_vibrate":"","play_lights":"","play_sound":""},
                  success : function(res) {
                      alert(res);
                }
                
            });   
        
     }
JS提交参数

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-04-16
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-12-05
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案