jpush / jpush-phonegap-plugin

JPush's officially supported PhoneGap/Cordova plugin (Android & iOS). 极光推送官方支持的 PhoneGap/Cordova 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
925 stars 350 forks source link

plugin add 显示成功,但是运行时查看日志显示没有成功,but the JPush plugin is not installed #439

Closed mirkcale closed 3 years ago

mirkcale commented 3 years ago

WARNING: 如果不按照这个表格,我们将无法帮助你,并将忽略你的问题。

你的运行环境

期望效果

希望插件能正常使用

实际效果

界面显示plugin_not_install , android studio logcat 中显示 “Native: tried calling JPush.getRegistrationID, but the JPush plugin is not installed."

重现步骤

  1. ...
  2. ...
  3. ...
  4. ...

背景

尝试过ionic repair 尝试过 cordova plugin rm ,然后再添加

Debug logs

包括 Android 或 iOS 的日志: 2021-06-18 14:19:26.636 21682-21682/com.trade I/chromium: [INFO:CONSOLE(3915)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: http://localhost:8101/build/vendor.js (3915) 2021-06-18 14:19:26.679 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/vendor.js: Line 57506 : Native: tried calling JPush.init, but the JPush plugin is not installed. 2021-06-18 14:19:26.680 21682-21682/com.trade I/chromium: [INFO:CONSOLE(57506)] "Native: tried calling JPush.init, but the JPush plugin is not installed.", source: http://localhost:8101/build/vendor.js (57506) 2021-06-18 14:19:26.680 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/vendor.js: Line 57512 : Install the JPush plugin: 'ionic cordova plugin add jpush-phonegap-plugin' 2021-06-18 14:19:26.680 21682-21682/com.trade I/chromium: [INFO:CONSOLE(57512)] "Install the JPush plugin: 'ionic cordova plugin add jpush-phonegap-plugin'", source: http://localhost:8101/build/vendor.js (57512) 2021-06-18 14:19:26.695 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/main.js: Line 243 : jpush init error "plugin_not_installed" 2021-06-18 14:19:26.695 21682-21682/com.trade I/chromium: [INFO:CONSOLE(243)] "jpush init error "plugin_not_installed"", source: http://localhost:8101/build/main.js (243) 2021-06-18 14:19:26.731 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/vendor.js: Line 57506 : Native: tried calling JPush.init, but the JPush plugin is not installed. 2021-06-18 14:19:26.731 21682-21682/com.trade I/chromium: [INFO:CONSOLE(57506)] "Native: tried calling JPush.init, but the JPush plugin is not installed.", source: http://localhost:8101/build/vendor.js (57506) 2021-06-18 14:19:26.732 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/vendor.js: Line 57512 : Install the JPush plugin: 'ionic cordova plugin add jpush-phonegap-plugin' 2021-06-18 14:19:26.732 21682-21682/com.trade I/chromium: [INFO:CONSOLE(57512)] "Install the JPush plugin: 'ionic cordova plugin add jpush-phonegap-plugin'", source: http://localhost:8101/build/vendor.js (57512) 2021-06-18 14:19:26.738 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/vendor.js: Line 57506 : Native: tried calling JPush.getRegistrationID, but the JPush plugin is not installed. 2021-06-18 14:19:26.738 21682-21682/com.trade I/chromium: [INFO:CONSOLE(57506)] "Native: tried calling JPush.getRegistrationID, but the JPush plugin is not installed.", source: http://localhost:8101/build/vendor.js (57506) 2021-06-18 14:19:26.738 21682-21682/com.trade D/SystemWebChromeClient: http://localhost:8101/build/vendor.js: Line 57512 : Install the JPush plugin: 'ionic cordova plugin add jpush-phonegap-plugin' 2021-06-18 14:19:26.738 21682-21682/com.trade I/chromium: [INFO:CONSOLE(57512)] "Install the JPush plugin: 'ionic cordova plugin add jpush-phonegap-plugin'", source: http://localhost:8101/build/vendor.js (57512)