App crash when notification is launched
See original GitHub issueinstall the plugin and try to launch a notification with a button, but the application closes, I have installed the geolocation-background plugin , it will be a problem of compatibility of plugins?
apparently it is an ionic update error, create a blank project and install and configure the plugin and re-crashe the app.
Your Environment
- Plugin version: 0.9.0-beta.2
- Platform: android
- OS version:
- Device manufacturer / model: Samsung galaxy j7 prime
- Cordova version (
cordova -v
): 9.0.0 (cordova-lib@9.0.1) - Cordova platform version (
cordova platform ls
): android 8.0.0 - Plugin config: default
- Ionic Version (if using Ionic): 5.2.7
Expected Behavior
App send notification when button is activated
Actual Behavior
when button is activated app is closed(crashed).
Steps to Reproduce
-in appmodule.ts import { LocalNotifications } from ‘@ionic-native/local-notifications/ngx’; … providers: [ BackgroundGeolocation, LocalNotifications … ]
-in home.ts import { LocalNotifications } from ‘@ionic-native/local-notifications/ngx’; … constructor(private backgroundGeolocation: BackgroundGeolocation, public plt: Platform, private localNotifications: LocalNotifications) … notificationTest(){ this.localNotifications.schedule({ id: 1, text: ‘Notificacion’, data: { secret: ‘secret’ } }); }
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top GitHub Comments
it worked with this
Thanks to this thread, it helps after so many month of experiencing the same issue