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.

App crash when notification is launched

See original GitHub issue

install 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:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

7reactions
matamune94commented, Oct 2, 2019

it worked with this

      cordova.plugins.notification.local.schedule({
        text: 'Delayed ILocalNotification',
        led: 'FF0000',
        smallIcon: 'res://mipmap-ldpi/ic_launcher.png'
      })
0reactions
seunexplicitcommented, Apr 27, 2020

Thanks to this thread, it helps after so many month of experiencing the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

IOS 10 crashes caused by Local Notification - Apple Developer
IOS 10 crashes caused by Local Notification ... When the app is opened or when a new contact is added through the app,...
Read more >
2.8.31 - Crash when opening a push notification and app not ...
I'm seeing a crash on app startup after opening a push notification. It only seems to happen when the app is not running...
Read more >
[Solved] Android app crash when one signal notification sent
My App Crash every time I send a One Signal Push notification. note: firebase has no issue also one signal inApp message working...
Read more >
App crashes in background when processing push notification ...
So our guess, is that the crash happens when application is in background and a push notification is received by our app. It...
Read more >
Settings keep crashing when I try to open them through my ...
Settings keep crashing when I try to open them through my notifications in my android app · android · android-intent · android-pendingintent ...
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