ZX

Results 20 comments of ZX

> @cipchk 花了点时间看了极光插件的实现,得到了合适的方式配置: > 1.android\app\build.gradle 加入 > ` manifestPlaceholders = [ JPUSH_PKGNAME : applicationId ]` > > 2.android\app\src\main\AndroidManifest.xml > 加入 > ` ` > ![image](https://user-images.githubusercontent.com/34148806/63317284-d3cb0180-c344-11e9-86d7-27a2b3f7ec4e.png) > ![image](https://user-images.githubusercontent.com/34148806/63317323-f78e4780-c344-11e9-9aba-0a32ede27686.png) 使用capacitor,IOS平台添加此插件,构建会报“library not found...

我也遇到了同样的问题,请问有解决办法吗

为了方便使用,我将它Fork了一份,感谢大牛!!! Capacitor 使用 npm 安装: ``` npm i cordova-plugin-jpush-capacitor@latest ``` ### capacitor同步插件至Android/iOS项目(前提是已经通过命令添加了IOS/Android平台): ``` ionic cap sync ``` ### IOS 设置APPKEY: ``` ionic cap add ios ionic cap sync ``` Xcode打开IOS项目,找到如下图中的jpush配置文件,替换成自己项目的APPKEY:...

> ios下能获取Registration ID, 但是无法收到通知... 后台提示消息送达了, 但是手机上没有通知. > 按照官方文档说的各种办法试了不好用. 今天我也发现了,昨天刚集成好的时候,在极光后台推送了,IOS能正常接收到推送,今天不行了,Xcode控制台看了下,可能是DeviceToken 一直获取不到,没有回传给极光后台;

> 好用了!!! , 参考极光官方的swift文档, 在根目录APPDelegate.swift中调用极光的registerDeviceToken方法 > https://github.com/jpush/jpush-swift-demo 可以的,我整合一下,多谢

文档博客:https://blog.csdn.net/zhuxiandan/article/details/109443648

> ![image](https://user-images.githubusercontent.com/26617741/99789803-1f7ae500-2b5e-11eb-9f66-5c5c444e32e0.png) > ios的你们有报这个警告吗 有的,但是这个应该不影响业务,除非你要统计通知的点击量

> ![image](https://user-images.githubusercontent.com/26617741/122718296-5a352f00-d29f-11eb-8ebe-6b23b92e57b9.png) > ![image](https://user-images.githubusercontent.com/26617741/122718327-63260080-d29f-11eb-81e6-092f7a712d31.png) > ![image](https://user-images.githubusercontent.com/26617741/122718381-7638d080-d29f-11eb-912f-272d0b724502.png) > 真机运行正常,模拟器就会报错,后面注释了这块函数才可以运行 推送你在真机调试啊,为什么要在模拟器调试推送呢

> @jiguang-ionic/jpush/ngx @jiguang-ionic/jpush/ngx 这个包没有暴露出这个方法,不适用于Capacitor,

> @AlwaysLoveme 请问,我用ionic 6 + Capacitor +angular 怎么才能 设置 startJPushSDK() 方法呢? 集成了上面我说的那个改过的极光插件,在deviceready事件中直接window.JPush.startJPushSDK() 就可以,android平台不需要手动初始化