Maasea
Maasea
这是因为JPush.clearNotificationById 接收的参数并不是 messageID,而是notificationId,但是 notificationId 在java 接收后并未传递到react native,所以需要手动修改一下源码: 找到 cn.jiguang.plugins.push.helper.JPushHelper#convertNotificationToMap 方法 [jpush-react-native/android/src/main/java/cn/jiguang/plugins/push/helper/JPushHelper.java] 在传入的参数中增加notificationId ```java public static WritableMap convertNotificationToMap(String eventType, NotificationMessage message) { WritableMap writableMap = Arguments.createMap(); writableMap.putString(JConstants.NOTIFICATION_EVENT_TYPE, eventType); writableMap.putString(JConstants.MESSAGE_ID, message.msgId); writableMap.putString(JConstants.TITLE,...
试一下 YouTube.Experimental.sgmodule 这个模块
失效是因为你本地存在其他YouTube相关的修改冲突了。 只要你想保留去广告功能,就一定会出现pip加载异常的场景。出现这个错误并不是因为脚本修改错误,而是因为去广告需要mock initplayback 这个接口,使其退回成protobuf 响应,只要mock 这个接口就容易出现pip异常。 所以如果你想用美国IP 开启pip是可以的,但是想兼顾去广告的话并不可行。 YouTube.Experimental.sgmodule 这个模块,不再mock initplayback 而是直接修改它。因为解析initplayback 的响应结构并没有经过很多测试,所以标注了Experimental
initplayback 响应比较大,且涉及加解密,在本地速度太慢了。 另外,YouTube.Experimental.sgmodule 是指 https://github.com/Maasea/sgmodule/blob/master/YouTube.Experimental.sgmodule