UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    sms service is not working

    Scheduled Pinned Locked Moved Support
    5 Posts 2 Posters 738 Views 2 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.
      • B Offline
        babbu
        last edited by

        incoming sms not working though outgoing sms are working ... is there any fix?

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          Giiba @babbu
          last edited by

          @babbu I think you will need to provide more information. What phone and carrier would seem the minimum.

          But any other details might help too.

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            babbu
            last edited by

            bin/python3

            from gi.repository import GLib

            import dbus
            import dbus.mainloop.glib

            def incoming_message(message, details, path, interface):
            print("%s" % (message.encode('utf-8')))

                for key in details:
                        val = details[key]
                        print("    %s = %s" % (key, val))
            

            if name == 'main':
            dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

                bus = dbus.SystemBus()
            
                bus.add_signal_receiver(incoming_message,
                                                bus_name="org.ofono",
                                                signal_name = "ImmediateMessage",
                                                        path_keyword="path",
                                                        interface_keyword="interface")
            
                bus.add_signal_receiver(incoming_message,
                                                bus_name="org.ofono",
                                                signal_name = "IncomingMessage",
                                                        path_keyword="path",
                                                        interface_keyword="interface")
            
                mainloop = GLib.MainLoop()
                mainloop.run()
            
            1 Reply Last reply Reply Quote 0
            • B Offline
              babbu @Giiba
              last edited by

              @Giiba bin/python3

              from gi.repository import GLib

              import dbus
              import dbus.mainloop.glib

              def incoming_message(message, details, path, interface):
              print("%s" % (message.encode('utf-8')))

              for key in details:
                      val = details[key]
                      print("    %s = %s" % (key, val))
              

              if name == 'main':
              dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

              bus = dbus.SystemBus()
              
              bus.add_signal_receiver(incoming_message,
                                              bus_name="org.ofono",
                                              signal_name = "ImmediateMessage",
                                                      path_keyword="path",
                                                      interface_keyword="interface")
              
              bus.add_signal_receiver(incoming_message,
                                              bus_name="org.ofono",
                                              signal_name = "IncomingMessage",
                                                      path_keyword="path",
                                                      interface_keyword="interface")
              
              mainloop = GLib.MainLoop()
              mainloop.run()
              
              1 Reply Last reply Reply Quote 0
              • G Offline
                Giiba
                last edited by

                Assuming your on a Pinephone, modem features are not fully implemented yet so basic connectivity is glitchy.

                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
                • First post
                  Last post