Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: add cordova plugin "jpush-phonegap-plugin", IOS app crashed #2653

Closed
1 of 4 tasks
AlwaysLoveme opened this issue Mar 28, 2020 · 3 comments
Closed
1 of 4 tasks

bug: add cordova plugin "jpush-phonegap-plugin", IOS app crashed #2653

AlwaysLoveme opened this issue Mar 28, 2020 · 3 comments

Comments

@AlwaysLoveme
Copy link

AlwaysLoveme commented Mar 28, 2020

Bug Report

Hi, there is still a problem with plugin "jpush-phonegap-plugin", since I download this commit change to replace my local files which is "#2636", Xcode build success width no errors, but it can not running on my phone, the app crashed

Capacitor Version

npx cap doctor output:

Latest Dependencies:

  @capacitor/cli: 1.5.2

  @capacitor/core: 1.5.2

  @capacitor/android: 1.5.2

  @capacitor/electron: 1.5.2

  @capacitor/ios: 1.5.2

Installed Dependencies:

  @capacitor/android not installed

  @capacitor/electron not installed


  @capacitor/cli 1.5.2

  @capacitor/ios 1.5.2

  @capacitor/core 1.5.2

  Found 3 Capacitor plugins for ios:
    cordova-plugin-device (2.0.3)
    cordova-plugin-jcore (1.3.1)
    jpush-phonegap-plugin (3.7.3)
[success] iOS looking great! 👌

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

Xcode build success, but app crashed.

Expected Behavior

app can running normal

Sample Code or Sample Application Repo

there is sample code https://github.com/AlwaysLoveme/demo_.git

Reproduction Steps

  1. create a blank project with "@ionic/cli"
  2. add cordova plugin "npm i jpush-phonegap-plugin"
  3. download "https://github.com/ionic-team/capacitor.git" files which is included ""fix(cordova): Add lib prefix to .a library names (fix(cordova): Add lib prefix to .a library names #2636)", and build @capacitor/cli, then copy dist to replace local file
  4. run "ionic build --prod && ionic cap add ios && ionic cap open ios"
  5. Xcode running

Other Technical Details

npm --version output: 6.14.4

node --version output: 12.16.1
pod --version output (iOS issues only): 1.9.1

Other Information

#2632

@jcesarmobile
Copy link
Member

Closing as known incompatible plugin

Since Capacitor projects are Swift projects, plugins with categories to AppDelegate won't work and in this case it crash the app because it swizzle a method in the category.

@sertal70
Copy link

Hi, @jcesarmobile why the "Known Incompatible Cordova Plugins" page does not report this? My work for implementing push notifications in a Capacitor app is resulting in an incredible amount of time wasted...

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants