169 похожих чатов

Hey folks I recently had an idea which requires checking my

Phone's gallery for new photos and sync them S3 storage.

A PWA (progressive web app) would be ideal because I would be able to support both iOS and Android with more or less 1 code base and I don't want to maintain 2 apps in two completely different tech stacks.

But PWAs don't get access to the photo gallery, so there's no way to sync automatically.

So I thought to myself: "why not just have a basic wrapper app that has access to the gallery via native API which passes the file to a webview running the PWA?"

But I have close to zero experience in mobile development so I can't judge whether this approach is feasible.

Any ideas why this might not work?

25 ответов

50 просмотров

Imo it's feasible, but make sure: A) Security B) Make sure it doesn't nakes the phone slow af and most importantly C) you can implement it

Roman-Sharkov Автор вопроса
Malware ( DM = BLOCK )
Imo it's feasible, but make sure: A) Security B)...

I would essentially need to periodically run some code that could somehow query the gallery for photos it hasn't seen yet basically, check the gallery directory for files which are younger than lastUpdateTimestamp

So how exactly are you avoiding two apps with different tech stacks again?

Roman-Sharkov Автор вопроса
Martin Rys
So how exactly are you avoiding two apps with diff...

by default, I would need to implement everything twice, once in Swift iOS SDK, and another one with Java/Kotlin Android SDK

Roman Sharkov
by default, I would need to implement everything t...

Don't you already do that even with the PWA? Or is the image part just a tiny portion of the project

Roman-Sharkov Автор вопроса
Martin Rys
Don't you already do that even with the PWA? Or is...

not exactly, I would only do the non-portable part in the OS-specific way. Everything else will be PWA, which ist shared across all platforms

Chec out ionic

Link 🪈
Chec out ionic

Probably flutter is better

Roman-Sharkov Автор вопроса
Malware ( DM = BLOCK )
Probably flutter is better

I remember having played with flutter a bit and I was surprised by how bad the performance was, it couldn't even render 30 fps on a mac

Roman Sharkov
I remember having played with flutter a bit and I ...

"on a mac" do you even care about it? if so, ohh idk about mac

Roman-Sharkov Автор вопроса
Malware ( DM = BLOCK )
"on a mac" do you even care about it? if so, ohh ...

if it can't run smoothly on a laptop, how will it run smoothly on a phone?

Roman Sharkov
if it can't run smoothly on a laptop, how will it ...

idk, i made a couple of apps which are workin' flawlessly on phones however it looks absolutely trash 🗑️ on laptop

Just do them native first imo

Thomas
Just do them native first imo

Kotlin multiplatform would be best choice

have you thought of using an existing app? immich or something? immich doesn’t yet support S3 but if you want you could try to implement it

Roman-Sharkov Автор вопроса
Sid Sun // 👾
have you thought of using an existing app? immich ...

Do not use the app as the only way to store your photos and videos. 🙃

Roman Sharkov
Do not use the app as the only way to store your p...

something like :P there are a few others which are production ready

Roman-Sharkov Автор вопроса
Sid Sun // 👾
have you thought of using an existing app? immich ...

I tried the demo and it's full of bugs 😅🙈

Roman Sharkov
I tried the demo and it's full of bugs 😅🙈

immich?! i’ve been running it for months hahah haven’t found any major bugs yet

Google Photos can already auto "backup" all the photos online

my 3 cents: please just write a better image viewing gallery for nextcloud

Roman Sharkov
not exactly, I would only do the non-portable part...

if you are using pwa, you can use capacitor to build for ios and android and then use codepush to generate and manage builds

https://github.com/photoprism/photoprism

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
Ребят в СИ можно реализовать ООП?
Николай
33
https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_h_common.erl#L174 https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_olp.erl#L76 15 лет назад...
Maksim Lapshin
20
Карта сайта