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

    sms service is not working

    Support
    2
    5
    244
    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
      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
        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
          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
            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
              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
              • First post
                Last post