• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
GUI-O Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login

Announcing IoT push notifications

Scheduled Pinned Locked Moved
Announcements
2
32
3.0k
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.
  • S
    Sato @kl3m3n
    last edited by 31 May 2022, 15:32

    @kl3m3n

    Please explain how can i get the Beta, sorry, it's new for me

    Regards

    1 Reply Last reply Reply Quote 0
    • S
      Sato @kl3m3n
      last edited by 31 May 2022, 17:43

      Hi @kl3m3n,

      The current situation!

      I added in your example code the sending of notifications automatically every 60 seconds via the milis function

      The cell phone with Android10 gets the notifications with the App closed, but if I try to open GUI-O, it freezes with a black screen

      The cell phone with Android11 gets the notifications only if the App is open, i.e. it doesn't need to is connected, it only needs to be with the GUI-O logo Connect . Create . Control, but when it receives the Notification this does not overlap the image that is on the screen, I do not know if it is so and I can not compare with what Androi10 has because it does not open the Gui-O

      Hope this helps

      Regards

      K 1 Reply Last reply 31 May 2022, 19:58 Reply Quote 0
      • K
        kl3m3n @Sato
        last edited by 31 May 2022, 19:58

        @sato hello, thank you for the update... I am reading that Samsung is killing services like crazy (especially newer devices).
        They have very aggressive battery optimization techniques that break the concept of foreground services. Please see:
        https://dontkillmyapp.com/samsung
        Try following the instructions to (at least) paritially fix this. Please keep me informed.

        I have an older Samsung phone (Android 7) and newer Xiaomi phone (Android 11) and I do not experience the issues that you have.

        I will also try to find a solution for this.

        BR,
        kl3m3n

        S 2 Replies Last reply 31 May 2022, 21:28 Reply Quote 0
        • S
          Sato @kl3m3n
          last edited by 31 May 2022, 21:28

          @kl3m3n,

          Ok, Thank You

          When you have some global solution, that is, independent of the manufacturer of the cell phone would be ideal.
          It is complicated that to use this great GUI-O functionality you have to use some specific equipment.

          When have news, please informe us.

          Regards

          1 Reply Last reply Reply Quote 0
          • S
            Sato @kl3m3n
            last edited by 31 May 2022, 23:26

            Hi @kl3m3n,

            Sorry, i again with questions.

            I can send message from ESP32 to Whatsapp or Signal trough a Bot, on my both Samsung Mobiles, this Apps works with background service too, or it's diferent?

            Another questions is, how can get this Text "OF4321" like the attached Scrennshot, to a String variable

            Device_Text.jpg

            K 1 Reply Last reply 1 Jun 2022, 06:01 Reply Quote 0
            • K
              kl3m3n @Sato
              last edited by kl3m3n 6 Jan 2022, 08:01 1 Jun 2022, 06:01

              @sato
              I have been running the push notification service for approx. 10h (Android 7, Samsung Galaxy S6), without any problems sending the notification every 30 seconds. Everything still works ok. So, I am convinced that the service works ok. I will try it on my Xiaomi device also (Android 11) for prolonged duration, but I also don't see any problems here...

              Regarding Whatsapp - OEMs (e.g., Samsung) probably keep some list of whitelisted applications that the OS is not allowed to kill, so there is definitely some difference here.

              This is (in my opininon) one of the few drawbacks of Android systems (comapring to Apple devices) - due to open sourceness, the OEMs can do what they want, often breaking some core functionalities.

              Regarding your second question - when creating a device, specify the optional user name. This is then sent in the usr: parameter. So:
              Quick pair -> IoT devices -> add a new device -> specify device and user name.

              BR,
              kl3m3n

              S K 2 Replies Last reply 1 Jun 2022, 09:18 Reply Quote 0
              • S
                Sato @kl3m3n
                last edited by 1 Jun 2022, 09:18

                Hi @kl3m3n,

                I will try to explain
                When I supply the pcb with ESP, I create a device on my phone, with for example, New_987 and no username, from there, I have the In and Out topics that i put in the code to compile in the ESP, the client can later change this name New_987 and it continues working.
                Now, if I also use the username and the client makes changes, it stops working.
                That is why I ask how to read this device name that appears in the sub-menu of Quick connect, to a String variable, as I sent in the post with the screenshot, so I don't need the username. Please test what I am mentioning.

                Regards

                K 1 Reply Last reply 1 Jun 2022, 10:21 Reply Quote 0
                • K
                  kl3m3n @Sato
                  last edited by kl3m3n 6 Jan 2022, 12:23 1 Jun 2022, 10:21

                  @sato Why don't you specify the user name also? You will then be able to filter incoming messages based on user name also (not just device name, which can be the same on different Android devices).

                  Let's continue this topic here:
                  https://forum.gui-o.com/topic/65/add-the-iot-name-to-init/7

                  BR,
                  kl3m3n

                  1 Reply Last reply Reply Quote 0
                  • K
                    kl3m3n @kl3m3n
                    last edited by 1 Jun 2022, 14:00

                    @kl3m3n said in Announcing IoT push notifications:

                    @sato
                    I have been running the push notification service for approx. 10h (Android 7, Samsung Galaxy S6), without any problems sending the notification every 30 seconds. Everything still works ok. So, I am convinced that the service works ok. I will try it on my Xiaomi device also (Android 11) for prolonged duration, but I also don't see any problems here...

                    Regarding Whatsapp - OEMs (e.g., Samsung) probably keep some list of whitelisted applications that the OS is not allowed to kill, so there is definitely some difference here.

                    This is (in my opininon) one of the few drawbacks of Android systems (comapring to Apple devices) - due to open sourceness, the OEMs can do what they want, often breaking some core functionalities.

                    Regarding your second question - when creating a device, specify the optional user name. This is then sent in the usr: parameter. So:
                    Quick pair -> IoT devices -> add a new device -> specify device and user name.

                    BR,
                    kl3m3n

                    Running Xiaomi Mi 9 Lite for 5h, push notification every 30 s, everything works ok.

                    BR,
                    kl3m3n

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sato
                      last edited by Sato 6 Feb 2022, 21:08 2 Jun 2022, 19:06

                      Hi Kl3m3n,

                      Since 10 hours ago I have re-enabled Push Notifications every 5 minutes. I disabled all possible battery management. It now works with my Samsung Android 11. Sometimes after receiving a Push Notification the GUI-O freezes, can't open, shows Gui-o black screen. Then I go to settings - Apps - choose GUI-O and confirm the "Force to close". After that, it works again and I don't need to restart the phone.
                      Another question, how many notifications can it show. Currently, when you get a new Notification, always delete the last one.

                      I know I ask a lot of questions, sorry
                      Best regards

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sato
                        last edited by 3 Jun 2022, 13:29

                        Hi kl3m3n,

                        My Sansung M22 updated the firmware to Android 12
                        Gui-O is still working, but Push notifications are not.
                        All the settings remained the same, that is, Android12 did not
                        changed anything, all the battery management options and others remain as they were before the update.
                        There is a warning about Gui-O where it says that the developer of the App should make corrections so that it works with this new version.
                        Attached I send the alert image.

                        Screenshot_20220603-141338_Device care.jpg

                        K 1 Reply Last reply 3 Jun 2022, 23:21 Reply Quote 0
                        • K
                          kl3m3n @Sato
                          last edited by 3 Jun 2022, 23:21

                          @sato could you please send the output of adb logcat?

                          First enable USB debugging:

                          1. On the Android device, open the settings. Tap Developer Settings. The developer settings are hidden by default. If the developer settings are not included in the settings menu of the device:

                          2. Depending on whether the device is a phone or a pad, scroll down and tap About phone or About Pad.

                          3. Scroll down again and tap Build Number seven times.

                          4. In the Developer settings window, check USB-Debugging.

                          You need to install the SDK platform tools from:
                          https://developer.android.com/studio/releases/platform-tools.html

                          Then open the terminal / shell and navigate to platform-tools directory and run:

                          adb logcat
                          

                          Please send the terminal output to info.guio.app[at]gmail.com (replacing at with @).

                          I would really appreciate this.

                          BR,
                          kl3m3n

                          S 1 Reply Last reply 4 Jun 2022, 19:42 Reply Quote 0
                          • S
                            Sato @kl3m3n
                            last edited by 4 Jun 2022, 19:42

                            Hi @kl3m3n,

                            Log file submitted

                            Regards

                            K 1 Reply Last reply 4 Jun 2022, 22:27 Reply Quote 0
                            • K
                              kl3m3n @Sato
                              last edited by 4 Jun 2022, 22:27

                              @sato Thank you.

                              Regarding the notifications, I have debugged the error using Android 12 emulator. This seems to be working now.

                              There were also some other errors targeting Android 12 (regarding Bluetooth), due to some API changes, which I handled inappropriately.

                              I have also added the device name to the IoT message from the GUI-O app.

                              I need to test the functionality and then I will release a fix...

                              Thank you for your help.

                              BR,
                              kl3m3n

                              S 1 Reply Last reply 4 Jun 2022, 23:38 Reply Quote 0
                              • S
                                Sato @kl3m3n
                                last edited by 4 Jun 2022, 23:38

                                @kl3m3n,

                                Thank you

                                Regards

                                K 1 Reply Last reply 5 Jun 2022, 11:19 Reply Quote 0
                                • K
                                  kl3m3n @Sato
                                  last edited by kl3m3n 6 May 2022, 13:26 5 Jun 2022, 11:19

                                  @sato v1.0.6 available.

                                  FYI: I also plan to add a notification log that stores multiple messages. I would rather not include Firebase. It will ruin the concept of IoT broker. You can setup your own IoT broker and the notifications functionality will "follow". No need for my interaction, configuration, etc. If I involve Firebase, this will not be the case...

                                  BR,
                                  kl3m3n

                                  S 1 Reply Last reply 5 Jun 2022, 15:49 Reply Quote 0
                                  • S
                                    Sato @kl3m3n
                                    last edited by 5 Jun 2022, 15:49

                                    @kl3m3n ,

                                    Thanks for the effort, the Push Notif. already works on my Android 12. The device name works good.
                                    Saving multiple messages, is also a great feature.

                                    So far, it's working on my Samsung Android 12. I've had to force close Gui-O a few times because it stopped opening. There was also a problem after update to 1.0.6.1, the Application UUID as changed.
                                    I will update later on my other Samsung Android 10, to see if it will also change.

                                    Best Regards

                                    K 1 Reply Last reply 6 Jun 2022, 12:43 Reply Quote 0
                                    • K
                                      kl3m3n @Sato
                                      last edited by 6 Jun 2022, 12:43

                                      @sato said in Announcing IoT push notifications:

                                      @kl3m3n ,

                                      Thanks for the effort, the Push Notif. already works on my Android 12. The device name works good.
                                      Saving multiple messages, is also a great feature.

                                      So far, it's working on my Samsung Android 12. I've had to force close Gui-O a few times because it stopped opening. There was also a problem after update to 1.0.6.1, the Application UUID as changed.
                                      I will update later on my other Samsung Android 10, to see if it will also change.

                                      Best Regards

                                      Can you please explain the circumstances when the GUI-O stopped opening. Can you create a log of this situation? Also, please try GUI-O v1.0.7.

                                      It is very strange that the applicationUUID changed. This would mean that other settings should change also. Are you certain, you did not uninstall the app?

                                      BR,
                                      kl3m3n

                                      S 2 Replies Last reply 6 Jun 2022, 13:15 Reply Quote 0
                                      • S
                                        Sato @kl3m3n
                                        last edited by Sato 6 Jun 2022, 15:23 6 Jun 2022, 13:15

                                        Hello @kl3m3n,

                                        I didn't uninstall the App, I just updated it through the Play Store, have now 1.0.7.1 and when I tested the Push notification didn't work, then I noticed that the Application UUID had changed.

                                        Yesterday, a few times, when receiving a Push, I pressed the notification and Gui-O did not react, I tried after that, opening normally and also did not open, then I had to go to Settings-Applications and select Gui-O and then force close, after that, it worked again.

                                        I am out of office, but at the end of the day, I will update the other Samsung Android 10, I didn't get a chance yesterday.
                                        After the update I will give Feedback if there was Applic UUID changed.

                                        Regards

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sato @kl3m3n
                                          last edited by 6 Jun 2022, 18:56

                                          @kl3m3n,

                                          Have updated to 1.0.7.1 the Samsung Android 10 and it no changed the Application UUID
                                          Good!

                                          Don't know why my cellphone Android 12 have changed the UUID on update
                                          Next version update i will look if it happens again

                                          Regards

                                          1 Reply Last reply Reply Quote 0
                                          22 out of 32
                                          • First post
                                            22/32
                                            Last post