New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native smartphone apps #12
Comments
Maybe use flutter :) |
Flutter is on the watchlist. Actually tried to build an app with https://godoc.org/golang.org/x/mobile & flutter, but didn't work due to compile / run errors. Would be amazing if somebody with experience in mobile app development could help us! |
I've never saw that golang has the ability to create mobile apps 😁 You easly can use flutter without go... |
It was an experiment. The whole project is an experiment. Not satisfied with the status quo. |
@lastzero To be honest, this seems a bit huge for a "good first issue" 😄 |
It's actually a first idea ;) It's good because there is nothing yet, a green field to play on. |
Agree with you on that part. However, you have to know very well the API imo. |
If you already know how to build it, yes. I don't have an idea yet what technology to use. It should be simple and good to maintain. Not like 10 wrapped containers with hipster tech. Working with Web technologies might be great because of code reuse, but then it's probably hipster tech. Open to suggestions. |
Ok, looks like you've got three options:
Also, you have tons of options like NativeScript or Vue Native. But trust me, I had experience with React Native and every time you want to do something more complex than "Hello World" tutorial you get a lot of troubles. So using all this SOMETHING-NATIVE promises big trouble in deep dive. Conclusion. If you want to be a hipster and you believe in the idea of code reuse, take ReactNative. It has a good community and you can expect a ton of pull requests. If you want to fun and learning something new take Flutter. This will be a great challenge. BTW, Dart is quite simple and I liked it as an alternative for JS and TS. But if you are good guys and have a lot of free time at your disposal, use Swift and Kotlin. This will be the best solution for any project that harder than "Hello World" tutorial. Swift and Kotlin are modern languages that are rapidly developing and allow you to do anything with extraordinary ease. Anyway, I am glad to help you with any of this three cases 😌 |
I'm also could help with thesre three. But react native i never used really :D |
What about uploading in the background and accessing photo meta data? Is that possible with reactnative or flutter? |
You still have to write native services in this case. Flutter and React Native are only for views. |
I thought maybe this is so common that there are ready to use APIs / components for this. Sounds like a native approach is unavoidable anyways, best we can do is mix native code with JS? Not sure if that makes it simpler to maintain... |
In addition, the native google libraries have better design libraries uncluded or provided from google. React Native doesn't really have a good Material Design library. Only flutter has a good design library which works really good. Flutter has the advantage to provide good design and transition on any smartphone. If you want to do the same with native you maybe get confronted with devices which crashes on special configurations... This can be vers annoying. |
@danieldaeschle When doing the UI with Flutter, the Dart code can be reused for an iOS app, the UI would look almost the same on both platforms and only platform specific code needs to be written in Swift or Kotlin - did I get this right? |
Yes, exactly |
Sounds like a plan. Does it make sense to create a |
A flutter project already provides this structure. |
It doesn't. First things first, you should google about features like accessing photo meta data, parallel background uploading (multiple objects), is it easy or not to work with photo editing, list component perfomance with a huge count of image objects and etc. The trivial details like UI kit or project architecture are minor points. Any of the technology we discussed in this topic do it well. |
Ideally somebody with experience can help us here... I probably won't have time to seriously experiment with those technologies in depth before next year. At best I can do a simple feasibility study. |
With flutter you can very easly do a lazy loading view. Editing photos should be possible with Dart. |
@lastzero i am not able to find rest api doc, is there any ? |
Hard to test locally as godoc -http ":80" doesn't seem to work outside the GOPATH
@santoshgistto As a first step, I just added a page to our Wiki and added routes & parameters to the inline docs: https://godoc.org/github.com/photoprism/photoprism/internal/api It was actually a bit annoying since my code is outside the GOPATH and the godoc server doesn't seem to work with that yet, so I had to push the changes to test them... |
Thanks @lastzero for reply.
Are we need request separately for thumbnails ?
|
Thumbnails are created dynamically depending on the parameters like size and format, there is not a single constant URL. We could add a default / example thumbnail URL to the search result if this helps? |
Thanks @lastzero it helped. |
Yes, currently busy with documenting etc - adding new features / apis when that is done |
ok cool, currently i am also looking into flutter. i will try to build the POC App using existing api. Thanks, |
@santoshgistto You are welcome to add yourself to our contributors list: |
@santoshgistto Put all relevant information including links to example apps here: https://github.com/photoprism/photoprism/wiki/Mobile-Apps |
I've used react-native some and think it would be good for views, additionally it seems easy to hook it into native app code. Really it all depends what the main goal is? |
Work in progress, see https://github.com/photoprism/photoprism-mobile I'll close this here. |
For Android and iOS. Interface should be similar to the Web UI (Material Design).
Main reason why this is important: Automatic upload / sync of photos stored on the devices, especially if PhotoPrism is hosted at home (devices need to be in the same Wifi network).
Maybe use NativeScript? https://www.nativescript.org/
The text was updated successfully, but these errors were encountered: