Local Notification Doesn't work


#1

Hi,
I’m trying to implement the Ionic Documentation Local Notification but doesn’t trigger any notification.
I was looking for a solution and found this info into the NPM repo of the plugin :
Npm Local notification

Important Notice
Please make sure that you always read the tagged README for the version you’re using.

See the 0.8 branch if you cannot upgrade. Further development for v0.9-beta will happen here. The 0.9-dev and ios10 branches are obsolate and will be removed soon.

Known issues

Support for Android Orio is limited yet.
v0.9 and v0.8 aren’t compatible with each other (Wont fix)
Not compatible yet with Ionic. Their wrapper is not part of this plugin. In future I will contribute to them to fix such issues in time. But for the moment I am busy enough with the plugin itself.

This is my ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 6.3.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 24.4.1
    ios-deploy        : 1.9.2
    Node              : v6.13.0
    npm               : 4.6.1
    OS                : macOS High Sierra
    Xcode             : Xcode 9.3 Build version 9E145

Environment Variables:

    ANDROID_HOME : /Users/ebosques/Library/Android/sdk

Misc:

    backend : pro

And this is the version of the plugin installed from Ionic documentation Local Notification plugin:

cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"

there is another plugin: Phonegap Local Notification. But I need to schedule the notification and this plugin doesn’t offer that property.

What can I do?

The question is, have you guys any solution for this issue? When are you going to produce and support your own plugins in order to avoid this problem with the plugins?

Thanks in advance.


#2

We can help but first provide following information:

  1. In which android version you are testing?
  2. Can you share Logs for Android?

#3

Hi @bhavin_webdesk

  1. Android version:
    6.0 y 7.0
  2. Android logs
    Sorry, but how can I get that info?.

Thanks.


#4
  1. You can open Android Studio.
  2. You will able to see “Logcat” button at bottom of it.
  3. Attach your device and select package from dropdown beside selected device.
  4. Schedule Notification and check for any error log in “Logcat”.

#5

Thanks, @bhavin_webdesk I’ve downgraded the plugin to version 0.8.5 and still works this version with Ionic. (for the moment… :disappointed_relieved: )
But I insist on the needed and importance that the Ionic team ( @adam @brandyshea @mhartington etc) create their own native plugins, to be sure to works well with the framework on each version of it.

Thanks!


#6

They’ll be doing and are currently working on that with Capacitor.


#7

Greats!
Thanks for your reply @SigmundFroyd