Hi, I was wondering. iOS ans Android development is a pain in the ass, and requires (for the most part) some sort of native framework and language to make them work on those platforms.

I was wondering. How is development for Linux phones? I am guessing you would have to develop to the specific OS branch, like /e/os or PostmarketOS, to make it work on each devices, or is there a common language that just makes it executable for all linux platforms, so I only have to develop and deploy once, and then I will be able to put it on Ubuntus marketplace, etc? Anyone in here got any experience with this?

  • myotheraccount@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    11 days ago

    For /e/os: basically like android. For postmarketos: similarly to how desktop apps are developed - you use a programming language of your choice, and a GUI toolkit. Popular toolkits are QT (used by KDE) and GTK (used by Gnome). Whichever you choose depends on taste - apps written using either should integrate reasonably well with all mobile shells in postmarketos, but of course GTK apps will feel more “native” in a GTK based shell (and the same for QT and KDE)

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    7
    ·
    11 days ago

    Typically you would make an app with qt and the qtquick and/or Kirigami extensions, or a GTK app with libawaita extensions.

  • mesa@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    11 days ago

    Ive done react native and full blown native.

    Its almost always difficult to keep it up to date with what google and apple keep changing things around. But initially its usually pretty easy. The hard part is its very difficult to get it though the app store. Apple is a toss up if its eaay or hard. Im convinced they have random people look at some % of builds. Android can be worse. The amount of ducks you have to get in a row…

    Im glad i havent had to make a mobile app last two years. But before that 5ish years building apps made me hate mobile dev.

  • Korhaka@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    11 days ago

    Depends on what you are trying to make, web app that is tested primarily on firefox is probably the easiest.

    If it compiles on Linux desktop it can compile on a phone too, although only tried that a couple times with CLI stuff so far.

    • somethingDotExe@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 days ago

      I think this should be the biggest selling point of both devs out there, but also users, since it’s crossover from desktop to your phone is so Smooth. Would be epic if you could have a linux os, that cross syncs to both you phone, tablet and phone via local wifi or something.

      • Denys Nykula@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 days ago

        Syncthing does synchronize the Documents directory between my phone (LineageOS), laptop (Windows) and netbook (Debian) over the phone’s Wi-Fi access point. IIRC this is discouraged by Android security model so might only work temporarily. However, for me it’s very useful.

      • Korhaka@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 days ago

        My Linux PC does sync data to my phone already. Linux and Android. Though file permissions are better on Linux, easier to setup properly.