The Cordova Local Notifications Plugin

Поделиться
HTML-код
  • Опубликовано: 23 фев 2019
  • This video covers how you can use the Local-Notifications plugin to set reminders and pop-up notifications for your Cordova application.
    Also discussed briefly are the core Cordova Dialog plugin features.
    Code GIST: gist.github.com/prof3ssorSt3v...

Комментарии • 54

  • @guysela3442
    @guysela3442 4 года назад +2

    Clear, concise and helpful. Thanks.

  • @jivanmainali1742
    @jivanmainali1742 4 года назад

    what exacty is express-session cookies encoded to? .Is it a base64 like jwt each component used to be

  • @intekmedia6849
    @intekmedia6849 Год назад +1

    No local notification plugin for cordova 11

  • @nishithasurapudi455
    @nishithasurapudi455 4 года назад +1

    will this work for android platform...?I have tried this for android platform i could see only the alert no notification is displayed.by the way iam not using emulator,iam simulating through my mobile connected to android stuio via usb debugging.Looking to hear from you steve. Thanks in advance

  • @KonstantinStanchev
    @KonstantinStanchev 4 года назад

    Hi Steve!
    Great tutorial!
    Only one question - the alerts are appearing multiple times. How can you fix that? In your video at 15:52

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 года назад +1

      one is because I clicked on the notification outside the app .on("click" - line 24. The second is from the .on("trigger" - line 29

    • @KonstantinStanchev
      @KonstantinStanchev 4 года назад +1

      @@SteveGriffith-Prof3ssorSt3v3 Ok, thanks, Steve!! :) I might have some issue in my code :)

  • @axk84
    @axk84 5 лет назад

    Thank you for the video.
    I installed version 0.8.5
    Then i see that this version does want the cordova-plugin-app-event plugin.. and If this event plugin is installed. My application can not run
    This is on iPhone.
    I am using beta3 on Android with no hassle.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад +1

      Here are the only three plugins from my config.xml file

      The whitelist comes with all apps.
      The dialogs I added to use in a sample version that I made.
      The 0.8.5 version is the only other plugin I installed. It did not add anything else.

  • @Colstonewall
    @Colstonewall 5 лет назад +1

    Just a general question Steve, how does Cordova compare to, say React Native? Why are you choosing Cordova? It seems you like it, any particular reasons why? Keep in mind I know very little about these mobile platforms, lol.
    PS: BTW, thank you again for all the help you so generously gave me with that React Question a few months ago. Most wouldn't have taken the time to even answer, much less explain it thoroughly.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад +2

      I think ReactNative, NativeScript, and Cordova are all great solutions to creating mobile apps using HTML, CSS, and JavaScript skills that web developers already have.
      They all have their pluses and minuses.
      It depends more on the skill of the developer and the amount of experience that they have with the platform than which platform you choose.
      I've been using PhoneGap/Cordova since around 2010. It's an old friend. So, I have a soft spot for it.

    • @topsl69
      @topsl69 5 лет назад +1

      As the name says, nativescript and react native are used to create native apps, while Cordova runs in a WebView.
      PS: React Native and nativescript don't use HTML, but JS and a minified version of CSS.

  • @abdullahmamun231
    @abdullahmamun231 4 года назад

    Hello sir, is it any problem with cordova 9.0.0 version? Why local-notification is not working in cordova 9?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 года назад +1

      There are different issues with different versions of Android and iOS working with different versions of the Local Notifications plugin. If you read through their documentation on the plugin pages they will guide you on which is best for which version of the mobile OS.

  • @chandrashekharbhandari9538
    @chandrashekharbhandari9538 Год назад

    Hi Steve
    If I set more than one notifications, sometimes it is not triggered. While opening the app all pending notifications triggered.
    Any suggestion.
    Thank you and sorry for troubling you.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Год назад

      Sorry it has been a few years since I touched Cordova or that plugin. No idea what the current state of either is for notifications.

  • @umerhassan3563
    @umerhassan3563 3 года назад

    Hello steve, thanks for your tutorial but I am having an issue, In my case notification are not poping up it just showing in the status bar.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад

      Sorry. I haven't touched this plugin in at least a couple years. I know that the last couple versions had quite a few changes.

  • @nishithasurapudi455
    @nishithasurapudi455 4 года назад

    can someone tell me how to do this for android....coz steve set some target device....I am using my own mobile to simulate via usb debugging...i could see only alert....looking for guidance...Many thanks in advance...

  • @yazer79
    @yazer79 4 года назад

    Hi Steve, what is the difference between using this and using firebase cloud messaging?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 года назад

      local notifications are not talking to a server. They are scheduled messages saved in the app for later release. The app can talk to a server and download information that will be scheduled for a notification.
      Firebase cloud messaging has to do with push notifications that are coming from a server without any involvement from the app.

  • @R3TVcom
    @R3TVcom 2 года назад

    Hi i am trying to implement this plugin but getting error: cannot find symbol
    import android.support.v4.app.NotificationCompat; is there any solution for this?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад

      I haven't used Cordova or this plugin for a couple years. Don't know what changes have happened in that time.

  • @muhammadabdullsamih2952
    @muhammadabdullsamih2952 3 года назад

    if we use socket io with that local notification can we make it push notifcation with it or if we use pusher or webpush in server?!

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад +1

      Local notifications are the client side part. You need push notifications on the server as well.

  • @RickyRickLoYoutuberFigo
    @RickyRickLoYoutuberFigo 5 лет назад

    when i try to install the plugin in the cmd it says me that there was an error while fetching the plugin via registry.
    What can i do?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад

      Sounds like the name was misspelled or have the wrong version number

    • @RickyRickLoYoutuberFigo
      @RickyRickLoYoutuberFigo 5 лет назад

      @@SteveGriffith-Prof3ssorSt3v3 ok i made it, anyway since i don't have a local emulator i'm using PhoneGap Build, but (because i've included the plugin in the config file) it says me that the plugin is not supported, what can I do?
      Thanks

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад

      @@RickyRickLoRUclipsrFigo it's been years since I used Phone Gap Build. If you have an account with them then their tech support should be able to help you.

    • @RickyRickLoYoutuberFigo
      @RickyRickLoYoutuberFigo 5 лет назад

      @@SteveGriffith-Prof3ssorSt3v3 ok thanks

  • @marchino3577
    @marchino3577 4 года назад

    can you post the entire progect?

  • @waltercejas5933
    @waltercejas5933 4 года назад

    Using it with autobahn / VueWamp .. not working with the app closed

  • @dipgupta1986
    @dipgupta1986 4 года назад

    Is it possible to run the app in background and listen to incoming call using this?

  • @brucereal4418
    @brucereal4418 5 лет назад

    does browser support the cordova local-push-notification plug in?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад +1

      No. The browser platform is not supported by the plugin. If you want to do notifications in the browser you can use the HTML5 web notifications API in combination with push notifications from a server.

    • @brucereal4418
      @brucereal4418 5 лет назад

      @@SteveGriffith-Prof3ssorSt3v3 thank you for respoding, can you make a guide on how do you set up emulator? how do you open applications in an emulator?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад

      @@brucereal4418 I already have that in the Cordova playlist.

    • @brucereal4418
      @brucereal4418 5 лет назад

      @@SteveGriffith-Prof3ssorSt3v3 ok last question can i add this cordova plugin to phonegap application? If so, how?

  • @cordovaprojekat3143
    @cordovaprojekat3143 3 года назад

    I have an issue. When i'm in the app both alerts show up and everything works perfectly, but when i close the app after the first alert(after i set the notification), the second alert does not show up in the notifications bar. Later, when i enter the app, the second alert shows up and says that it's triggered. What can i do?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад

      Sorry. This plugin has changed quite a bit since I did this tutorial or since I used it.

    • @cordovaprojekat3143
      @cordovaprojekat3143 3 года назад

      @@SteveGriffith-Prof3ssorSt3v3 i created a reminder in pure java in android studio. Is there any way to integrate it into cordova to make it work?

  • @rushikeshshirkar4097
    @rushikeshshirkar4097 4 года назад +2

    Can you please make video on how to use cordova background mode plugin to continuously run task in background to fetch data like some delivery partners app ?

  • @Tecnologiapamigente
    @Tecnologiapamigente 4 года назад

    we can add sound to the notification

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 года назад

      That is one of the options. On their wiki page they have an example with sound. github.com/katzer/cordova-plugin-local-notifications/wiki/11.-Samples

    • @ahmedayachi5889
      @ahmedayachi5889 3 года назад

      with cordova-plugin-dialogs just use the beep function

  • @gurjotsidhu7178
    @gurjotsidhu7178 Год назад

    Would it work if we kill the application manually?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Год назад

      What do you mean manually?
      The notifications are saved outside the app itself so stopping the app has no effect on them.

    • @gurjotsidhu7178
      @gurjotsidhu7178 Год назад

      @@SteveGriffith-Prof3ssorSt3v3 I mean when we kill the app by long pressing home button and swiping up on app

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Год назад

      @@gurjotsidhu7178 it doesn't hurt anything. The notifications are saved outside the app

  • @axk84
    @axk84 5 лет назад

    After ios 5.0.0 (cordova) i could not use 0.8.5, got the same issue as this:
    github.com/katzer/cordova-plugin-app-event/issues/15
    Instead I installed latest HEAD version:
    cordova plugin add github.com/katzer/cordova-plugin-local-notifications.git
    just as a tip if anyone else get this error message after updating ios version.

  • @Tecnologiapamigente
    @Tecnologiapamigente 4 года назад

    Android

  • @bradchellingworth5973
    @bradchellingworth5973 4 года назад +3

    The whole point of cordova is. to build cross platform apps. Plugins that only work for ios or android are basically useless. I have installed 0.9 and it works perfectly well on ios however when you try to schedule a notification on android, it fails and the plugin hasnt been updated or issues addressed in a long time. Really wishing I had used react-native and bypassed these rubbish plugins!