First off, im not new to Lemmy, im behind my Alt account. But I was to make this post because if an android app me and my boyfriend are currently working on, or soon to be working on. We value are privacy and security very much, and we take this much to ensure we are protected as much as we can. We know we can’t do 100%, but we can achieve 99.97%.

Anyways…

So, my boyfriend is in the process of making an Android app that lets users sign into their online accounts in one app. He said he wants to make this Twitter UI like app, with the ability to login with his accounts, with privacy and maintaining a healthy security. However, he has a problem due to us being in a situation where we can’t don’t want to pay for API’s for such services we have accounts for.

The main point, is it possible to make it to where; once the user opens the app, taps the button to sign in with Facebook let’s say, it opens Facebook in webview and when the user is done authenticating, the app then closes webview and shows content, within the custom UI in the app.

Same goes with other platforms like, Twitter, YouTube and what not.

Again, I’m not even sure if this is possible, but consuming that I have an android phone, and I play Fortnite at time to time, whenever I go to sign into my epic games account. The game opens webview and when I’m done signing in, it closes and continues with my account shown.

It’s basically a privacy security focused browser, but with an added features like viewing and managing your online accounts.

  • BlackEco@lemmy.blackeco.com
    link
    fedilink
    English
    arrow-up
    24
    ·
    3 months ago

    If I’m getting this right, you’re planning on displaying some websites in a WebView in which you inject JS to modify the UI / add features?

    Well, you totally can, I often do that on the desktop using Greasemonkey. Just be prepared for lost time whenever one of the websites introduce a breaking change.

  • solrize@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    3 months ago

    You are trying to run unauthorized bots on Facebook etc. Of course anything you do that annoys Facebook makes me happy, but they are constantly trying to block such bots, and it’s a cat and mouse game. Keeping it reliable enough to support as a product may be a headache. Anyway it’s called web scraping and there’s a bunch of lore and products for it, like proxy access to rooms full of phones. The general flavor is something like SEO. A seedy atmosphere with lots of hucksters claiming to have their own secret tricks, but I think there aren’t real mysteries…

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    3 months ago

    If you don’t want to use API, which API are designed specifically for this kind of thing, then you may have to use web scraping to do what you want.

    • SophiaOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      12
      ·
      3 months ago

      I don’t like the idea of web scraping as it doesn’t seem moral in my eyes, or my BF’s. I was hoping it was possible to just embed said platform (Facebook, for example) in the app.

      • viking@infosec.pub
        link
        fedilink
        English
        arrow-up
        34
        ·
        3 months ago

        I mean if you are building an app that embeds the web front-ends for a bunch of social media sites, then you are building… A browser. With a bunch of bookmarks.

        • SophiaOP
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          6
          ·
          3 months ago

          I plan on implementing such feature (like Facebook, Instagram) where it saves the login. But yeah, a private browser designed mainly for browsing social media

  • mannycalavera@feddit.uk
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    2
    ·
    3 months ago

    Can I Develop An App Without API’s?

    MainActivity.onCreate()wup wup wup.

    Game over please insert 25¢ to try again.

  • blahsay@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    3 months ago

    Unfortunately most tech companies don’t allow messenger pigeon authentication so apis are necessary I’m afraid.

  • SheeEttin@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    The main point, is it possible to make it to where; once the user opens the app, taps the button to sign in with Facebook let’s say, it opens Facebook in webview and when the user is done authenticating, the app then closes webview and shows content, within the custom UI in the app.

    So like a custom browser?

    Also, I’m pretty sure that sites like Facebook prevent you from loading their login page in an untrusted webview, so that malicious apps can’t inject code and steal passwords.

    • SophiaOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 months ago

      That’s a bummer…😤