MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Phone Notifications

    Scheduled Pinned Locked Moved Utilities
    97 Posts 31 Posters 148.2k Views 33 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      willharwell @Les
      last edited by

      @Les
      Having the same issue here.
      From the command line where I started npm I see nop nop nop push, each time a notification comes in.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gismo2006
        last edited by

        I’ve got the same Problem some time ago. I didn’t know where the Problem is, but I can explain you @Les and @willharwell what I have done and it works fine at my mirror.

        At first I have sing up at phushbellt Then I have installed like the Readme file says.

        BUT then no notification will displayed. After spending hour for hour i opend the Link of moosedookie some post before and manually download the notification.js from this Link. Then I copy and overwrite it in the module Folder at my Raspberry.

        And now everything works fine. For example If I push “test notification” in the Handy app, it will displayed directly.

        I hope you understand…

        greets gismo

        1 Reply Last reply Reply Quote 0
        • R Offline
          ronny3050 Module Developer
          last edited by

          @willharwell and @Les can you please try the latest push and let me know? I hope it will fix the issue.

          1 Reply Last reply Reply Quote 0
          • N Offline
            nobita @ronny3050
            last edited by

            @ronny3050 said in Phone Notifications:
            How to Update your module

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              ronny3050 Module Developer @nobita
              last edited by

              @nobita call ‘git pull’ in the phone_notification directory.

              1 Reply Last reply Reply Quote 0
              • G Offline
                guybatt234
                last edited by

                Has there been any progress in making notifications time out?

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mschlesinger19
                  last edited by

                  @guybatt234 I am not sure if the fix was ever put in for reversing the order but I figured out how to reverse the order of notifications. In phone_notification.js in the cleanPayload function instead of pushing to the back of the array just call a payload.unshift(newPayload) and that should treat it like a stack and not a queue

                  1 Reply Last reply Reply Quote 0
                  • ToastT Offline
                    Toast
                    last edited by

                    im on the latest revision but not receiving any notifcations

                    1 Reply Last reply Reply Quote 0
                    • lucallmonL Offline
                      lucallmon
                      last edited by

                      Has anyone had an issue with filling up your notifications and then no new notifications come through at all?

                      1 Reply Last reply Reply Quote 0
                      • rchaseR Offline
                        rchase
                        last edited by

                        Anyone ever get iphone work?

                        lucallmonL 1 Reply Last reply Reply Quote 0
                        • lucallmonL Offline
                          lucallmon @rchase
                          last edited by

                          @rchase android seems to work fine. As long as there’s a pushbullet app for iPhone it should work. I don’t even use the app on my phone.

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            MaengMarco
                            last edited by

                            How can I reset?
                            Notifications always keep.
                            Also The second notification is output hundreds or thousands of times.
                            What should I do??

                            1 Reply Last reply Reply Quote 0
                            • O Offline
                              Oliver_Tooth
                              last edited by

                              Hi,

                              I’ve just installed your module for use with an iPhone. As I understand it, push-functionality is somewhat limited with Apple, but what can I expect this module to receive? Facebook messenger? Email? Calls/texts? Currently it doesn’t look like it’s receiving anything, but that may be because i’ve configured it wrong!

                              Cheers!

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                tnorling
                                last edited by

                                So I had a few issues with this module that I think I was able to fix. The first issue I had was that the second notification gets posted several times. Second, when a notification from an app is already on the list, if a new notification from that app comes in it does not update or push it to the top. Finally, the top of the list is the oldest notification, not the newest. I came up with a solution that seems to work for me so far.

                                In the phone_notification.js file update the cleanPayload function to look like this

                                cleanPayload: function(newPayload){
                                        var application_name = newPayload.application_name;
                                        var that = this;
                                        var dupIndex = 0;
                                        if(this.payload.length > 0)
                                        {
                                            this.payload.forEach(function (m) {
                                                // If application_name already exists, increment notification count
                                                if(m.application_name === application_name)
                                                {
                                                    m.count++;
                                                    that.payload.splice(dupIndex,1);
                                                }
                                                dupIndex++;
                                            });
                                        }
                                        
                                        this.payload.unshift(newPayload);
                                        this.payload.slice(0, this.config.displayCount -1);
                                    },
                                

                                Let me know if this helps or if you have any issues with it.

                                S 1 Reply Last reply Reply Quote 1
                                • S Offline
                                  SypherDaemon @tnorling
                                  last edited by SypherDaemon

                                  @tnorling Hello there! I had almost given up hope on anyone turning up to help. Thanks so much. But just to follow-up I´ve replaced the CleanPayload function with yours and it seems to only allow one notification to appear, while ignoring others. The notification count also does not seem to increase despite giving myself missed calls. Thanks once again. Perhaps there are other segments that you have edited to make this work?

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    tnorling @SypherDaemon
                                    last edited by tnorling

                                    @SypherDaemon Interesting…what did you set your numberOfNotifications to in the config file? I have mine set to 3 and I am indeed showing 3 notifications at a time. I also just finished writing a function to remove notifications once they’ve been swiped away from your phone. Maybe I changed something somewhere else as well that made it all work. I’ll post my current working code shortly for you to test out.

                                    Edit: The count may no longer work because I am now replacing notifications coming from the same app. I’ll see what I can do to fix that next…

                                    S 1 Reply Last reply Reply Quote 1
                                    • S Offline
                                      SypherDaemon @tnorling
                                      last edited by SypherDaemon

                                      @tnorling It’s fully working now, it was a mistake on my part. And yes I fully understand why the notification count isn’t increasing now, I was just using it to debug and see if the program was still accepting multiple notifications. Not really a loss from my end, as I’m not planning on using the notification count. But again, thank you so much. I’m gonna keep testing it out to see if there aren’t any unforseen side-effects.

                                      T 1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        tnorling @SypherDaemon
                                        last edited by

                                        @SypherDaemon No problem! I’ve been wanting to use this for my own project so I’ve been trying to fix the issues I see with it. Most of the work was done by others, they deserve the credit on this one. I forked the original repo and uploaded my work if you’d like the dismissal feature as well.

                                        Link is Here

                                        S R 2 Replies Last reply Reply Quote 1
                                        • S Offline
                                          SypherDaemon @tnorling
                                          last edited by SypherDaemon

                                          @tnorling I’m doing the same over on this side. I will definitely check it out. Good luck in your project!

                                          Edit: It turns out the problem earlier with the m.count++ was my own doing, my own mistake. Haha.

                                          1 Reply Last reply Reply Quote 1
                                          • R Offline
                                            ronny3050 Module Developer @tnorling
                                            last edited by

                                            @tnorling excellent work! Glad you could figure it out.

                                            Once you’re good to go, would you mind submitting a pull request?

                                            T 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 3 / 5
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy