ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.19k stars 1.01k forks source link

bug: capacitor is preventing the Airship SDK from receiving any push events #2518

Closed florianchevallier closed 4 years ago

florianchevallier commented 4 years ago

Bug Report

Capacitor Version

npx cap doctor output:

💊   Capacitor Doctor  💊
Latest Dependencies:
  @capacitor/cli: 1.5.0
  @capacitor/core: 1.5.0
  @capacitor/android: 1.5.0
  @capacitor/ios: 1.5.0

Installed Dependencies:
  @capacitor/cli 1.5.0
  @capacitor/core 1.5.0
  @capacitor/android 1.5.0
  @capacitor/ios 1.5.0

[success] Android looking great! 👌
  Found 1 Capacitor plugin for ios:
    urbanairship-cordova (10.1.0)
[success] iOS looking great! 👌

Affected Platform(s)

Current Behavior

Following this issue : #2511 I'm not able to get background notifications with the urban-airship plugin on Android

Expected Behavior

Well I would be pleased if this would work on android as well

Sample Code or Sample Application Repo

You can clone, configure and launch this app :

https://github.com/florianchevallier/test-ionic-app-notif

Reproduction Steps

{
    "audience": "all",
    "notification": {
        "alert": "Hey Android and iOS!!"
    },
    "device_types": [
        "android",
        "ios"
    ]
}

Other Technical Details

npm --version output: 6.12.1

node --version output: v12.13.1

pod --version output (iOS issues only):

Other Information

You'll find the investigation on what lead to this bug here : https://github.com/urbanairship/urbanairship-cordova/issues/337

jcesarmobile commented 4 years ago

As explained in the linked issue, you are using capacitor listener instead of theirs, and they explained how to use theirs, so do what they told you.

ionitron-bot[bot] commented 2 years ago

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.