question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Push plugin on android does not work

See original GitHub issue

Followed steps present in https://capacitorjs.com/docs/guides/push-notifications-firebase on a brand new ionic capacitor project. When I ran build on Android studio, it threw following error:

android/capacitor-cordova-android-plugins/src/main/java/com/adobe/phonegap/push/PushPlugin.java:15: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sujith97commented, Aug 18, 2020

I did not know about this plugin. I just tried FCM plugin and it works like a charm for both Android and iOS.

Thanks much

0reactions
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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Push plugin does not work with cordova-android 11 #4319
Current behavior: Ionic docs say to use phonegap/phonegap-plugin-push per https://ionicframework.com/docs/native/push but this plugin is ...
Read more >
Cordova plugin push notification not working? - Stack Overflow
I am new in Cordova and I want to use cordova Push Notification. Can anyone help me to use the plugin ...
Read more >
Push notification not working - WordPress.org
My app's push notification not working recently. I am always getting the following message when I visit the page for wpmobile.app's plugin settings...
Read more >
Web Push Troubleshooting - OneSignal Documentation
Web Push Troubleshooting · Go to your website with the OneSignal code active. · Open the browser's Developer Tools Console with F12, or...
Read more >
[OneSignal Plugin] One signal Push notification Deeplink ...
[OneSignal Plugin] One signal Push notification Deeplink does not work on iOS but works on android.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found