Comments (11)
bump
from capacitor-plugins.
Any updates on the implementation?
from capacitor-plugins.
Hello guys, please tell me when you plan to add functionality notifyListener('localNotificationReceived') for LocalNotification plugin ?
This is actually in the plans?
Just a year has passed ..
from capacitor-plugins.
In the title you say localNotificationReceived
, but in the code sample you provided you use localNotificationsReceived
, can you double check?
from capacitor-plugins.
@jcesarmobile whoops, sorry about that! This was a typo in the bug report . The problem is seen when I use
LocalNotifications.addListener('localNotificationReceived', (notification) => {
console.log('notification received!!');
});
in the code. Also, this exact code does work in ios, just not android. I have fixed the bug report accordingly. Thank you!
from capacitor-plugins.
just checked and it's not implemented
from capacitor-plugins.
@jcesarmobile Will it be implemented?
Looks like android has event which can solve this problem, but as I understand it works only one timer and not recurring
Looks like even simpler
https://github.com/ionic-team/capacitor/blob/master/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/TimedNotificationPublisher.java
How to send notifyListeners?
Also as part of this shouldn't it show notification only if app is in background?
from capacitor-plugins.
@jcesarmobile Hey mate could you please help with this? I want to contribute to this one
from capacitor-plugins.
only plugin classes have notifyListener method, so you have to get the plugin and call a plugin method where you have the notifyListener, take a look on PushNotifications plugin
from capacitor-plugins.
As a workaround on capacitor 2.x you can listen to the localNotificationActionPerformed
event as that one is implemented and fires when the user taps on the notification.
from capacitor-plugins.
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 the plugin, please create a new issue and ensure the template is fully filled out.
from capacitor-plugins.
Related Issues (20)
- [splash-screen] Make docs usable for iOS app HOT 2
- Cannot select a printer from the Share dialogue box HOT 1
- bug(@capacitor/share): FATAL EXCEPTION java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tvoydnevnik/com.tvoydnevnik.MainActivity}: java.lang.SecurityException: com.tvoydnevnik: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts HOT 2
- Add Capacitor Webview HOT 2
- Add map events to be handled at client side HOT 2
- [Bug]: @capacitor/camera - Console (F12) error (undefined) clicking on the camera icon when still loading the camera or not alowing the permission yet. HOT 3
- Complience with Apples Required Reason API HOT 18
- google.maps.Marker is deprecated HOT 1
- [Geolocation / Android] The GPS position is only updated every 5 seconds when using "watchPosition" function on Android HOT 1
- [Feature] Deep linking for Chromebook Android (App appUrlOpen)
- @capacitor/share not work in android 14, capacitor 6 HOT 4
- feat(@capacitor/device) Request to update device plugin to remove privacy-impacting APIs HOT 1
- @capacitor/browser add a new BROWSER_CLOSED event HOT 1
- [@capacitor/filesystem] Successful Filesystem.requestPermissions prompt never resolves due to missing case in callback HOT 5
- [Feature]: native camera max weight settings
- @capacitor/share not working with capacitor v6 HOT 2
- Filesystem.copy not working con content:/ android
- Android 14 targetted build fails with RECEIVER_EXPORTED variable error HOT 2
- Feature Request: Add support for reading files in chunks
- Camera - taking a photo with .getPhoto() in macOs is having delays
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-plugins.