jpush-phonegap-plugin ios端本地通知调用不生效

_M14
2019-01-08 03:40 590 0

使用jpush-phonegap-plugin插件版本3.6.1
xcode:9.2
证书极光后台上传了开发和生产证书

测试代码:

```
window.JPush.init();
window.JPush.setDebugMode(true);

            if(window.JPush.isPlatformIOS()) {
              // iOS
              try{
                  window.JPush.addLocalNotificationForIOS(
                      0, 
                      "JPush contrnt", 
                      1, 
                      "notiId1", 
                      {data: "data"},
                  );
                  alert('suc')
              }catch(e){
                  alert(JSON.stringify(e))
              }
            } else {
              // Android
            }

2个回答

热门排序