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.

Local notification doesn't work on android using ionic 3 with android version 7 and below

See original GitHub issue

WARNING: IF YOU IGNORE THIS TEMPLATE, WE’LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

  • Plugin version: “cordova-plugin-local-notification”: “^0.9.0-beta.1”
  • Platform: ionic 3
  • OS version: android 7 and below( only works on android 8.0)
  • Device manufacturer / model:
  • Cordova version (cordova -v): 7.1.0
  • Cordova platform version (cordova platform ls): android 6.3.0
  • Plugin config
  • Ionic Version (if using Ionic): ionic-angular 3.7.1

Expected Behavior

Tell us what should happen

Actual Behavior

Tell us what happens instead

Notification works fine with me using the genymotion emulator having and android version of 8.0 but when the version is lower the notification will not work anymore.

Steps to Reproduce

Reproduce this issue; include code to reproduce, if relevant

  1. in android 4.4 (kitkat) after installing local notification without declaring the code in my project file, some of my code will not work using an emulator by genymotion.
  2. In android 7 my code works fine but the notification not. event just adding the sample notification to see if notification will not

Context

What were you trying to do?

just trying to test the notification if will work no further changes with the code

Debug logs

Include iOS / Android logs

no log shows

  • ios XCode logs
  • Android: $ adb logcat

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
normanaranezcommented, Jan 4, 2018

you need to test this using ionic 3 if you really want to know what happen. there is no error display but the plugin doesn’t work. when i test it on google pixel 3 having android version 8 it works fine when below of the android 8 version it will not work but not returning error.

0reactions
ghulamakbar14commented, Apr 26, 2019

Local notification is not working on Android 6 (Marshmallow). It is working on higher versions Android 7, 8 & 9.

Further specifications are as follows: Ionic : 4.12.0 Cordova : 9.0.0

@ionic-native/local-notifications”: “^5.3.0” “cordova-plugin-local-notification”: “0.9.0-beta.3”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local Notification doesn't work on android version 7 and below
local notification only works on android 8 but lower than that it will not work. there is no error found after running but...
Read more >
Ionic3 - the end of local notifications? - Stack Overflow
I had built an app using ionic 2 which was using local notifications. I have upgraded to ionic3 and have tried everything but...
Read more >
Local Notifications Capacitor Plugin API
The Local Notifications API provides a way to schedule device notifications locally (i.e. without a server sending push notifications).
Read more >
Adding Local Notifications to Ionic Framework Mobile Apps
How to create an Ionic Framework Mobile application for iOS & Android that uses Local Notifications.
Read more >
Create and Manage Notification Channels - Android Developers
To turn on the setting for a development device running Android 8.0 (API level 26), navigate to Settings > Developer options and enable...
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