Open Martinsos opened 1 year ago
I would love this!
Thanks @ScorpionOO8 :)! If you have any specific things you would like to see if Wasp goes in this direction, or ideas, let us know!
@Martinsos I built a small proof of concept webapp with Wasp last month but put it down because I realized I needed the app to be a local mobile app for my use case to make sense. I wanted to be able to use notifications and have an icon on the users phone to click on instead of having to use the browser, since my use case would have required interacting with the app several times per day and using a browser for that is a pain.
NOTE: For @ScorpionOO8 's case, even just PWA might be enough.
After some research, I believe that the best first step would be to extract the data layer into an agnostic piece and then attack this problem.
Using the new expo router it could even produce both web/mobile (even desktop) apps from a single codebase with a lot of code-reuse (like up to 90% in most cases) 🤔
Hah folder based routing :D. Never :D. Kidding, but not for now at least :D.
But you would share a lot of code this way -> however that means people are not writing normal React, right? Instead they are writing a bit different stuff, what are they writing really, some kind of Expo components (I don't know much about Expo)? We might scare people away that way, if it is not React.
Btw I love the diagram battle that is happening here :D.
It looks like I am going to continue using Wasp for the web app I am building at this time. We will soon need to have mobile apps both Android and iOS, I would love for this to be supported in the future.
At this time, I am thinking we will build our web app to be mobile friendly before going full-native. When we do go full native and Wasp still doesn't support it, we would look at implementing mobile apps using a different backend and the same DB (not ideal but I'm so hooked to Wasp at the moment, everything else seems too tedious).
Did you guys consider Capacitor? It should be pretty straightforward to add and produce a hybrid app
It looks like I am going to continue using Wasp for the web app I am building at this time. We will soon need to have mobile apps both Android and iOS, I would love for this to be supported in the future.
At this time, I am thinking we will build our web app to be mobile friendly before going full-native. When we do go full native and Wasp still doesn't support it, we would look at implementing mobile apps using a different backend and the same DB (not ideal but I'm so hooked to Wasp at the moment, everything else seems too tedious).
I hope we will have improvements on this front in time for you! Hard to say exactly yet when that will be though, and in which order exactly we will go for it.
Instead of using only database, you could also use Wasp's backend, by exposing functionality via api
. What would probably be the most useful for you in that case, is if we provided SDK for Wasp Auth to be used in Java / Swift (which we have an issue for).
Another thing that would help is if we also made it a bit easier to use Operations (Query, Action), in the sense that we produce docs for them and guarantee stability of the API, then you could easily use them from Java / Swift. We could go even further and produce SDK for them for Java / Swift. Then you wouldn't have to additional expose them via api
.
Anyway, let us know as you progress if you will have any more ideas what you will want to see from our side, and we will do our best to help out.
Did you guys consider Capacitor? It should be pretty straightforward to add and produce a hybrid app
I think that would be pretty interesting, we haven't yet investigated it but we know about it! We should certainly check it out. Expo is also quite interesting.
It looks like I am going to continue using Wasp for the web app I am building at this time. We will soon need to have mobile apps both Android and iOS, I would love for this to be supported in the future. At this time, I am thinking we will build our web app to be mobile friendly before going full-native. When we do go full native and Wasp still doesn't support it, we would look at implementing mobile apps using a different backend and the same DB (not ideal but I'm so hooked to Wasp at the moment, everything else seems too tedious).
I hope we will have improvements on this front in time for you! Hard to say exactly yet when that will be though, and in which order exactly we will go for it. Instead of using only database, you could also use Wasp's backend, by exposing functionality via
api
. What would probably be the most useful for you in that case, is if we provided SDK for Wasp Auth to be used in Java / Swift (which we have an issue for). Another thing that would help is if we also made it a bit easier to use Operations (Query, Action), in the sense that we produce docs for them and guarantee stability of the API, then you could easily use them from Java / Swift. We could go even further and produce SDK for them for Java / Swift. Then you wouldn't have to additional expose them viaapi
.Anyway, let us know as you progress if you will have any more ideas what you will want to see from our side, and we will do our best to help out.
Thank you for the great suggestions @Martinsos! If the auth is supported via an SDK, that would be super helpful! At the moment we are looking at building out the apps using React Native.
Another ask for it on Discord: https://discord.com/channels/686873244791210014/1244415420446802064/1244415420446802064 .
My SAAS app will have a mobile version. I'm using the dummy starter project for the web app, but when the time comes, I'll need to be able to do crud operations from my react native app. I know open-saas has a lot under the hood that makes web app development faster, but can I leverage any of this for my react-native app? I'm worried about how I might connect the mobile app to this one.
Would love to have this
I'd also love to be able to use WASP Auth on react native app
anything update
We haven't started working on this yet but it will certainly be happening! I can't say exactly when, but I hope we can start working on it this year. We will keep you posted here once we get started with it!
Hey let me know about this as well, I'm already knee deep in the Wasp Development with a Web App, and I'm so happy at how fast I've been able to iterate! Still, I haven't an idea of how to integrate with a mobile app yet. Because authentication is done via wasp, I don't see another way then to unwasp and connect with supabase. (But of course there's so much more that wasp provides and having to rewrite everything isn't how I'd like to move forward).
Hah unwasp :D. Yeah, so basically authentication is stopping you because you can't use it in the mobile app, so that is the first thing we should tackle! We have a separate issue for that here, and that will probably happen quite sooner than Wasp having full support for producing a mobile app, so I suggest keeping an eye on that: https://github.com/wasp-lang/wasp/issues/1973 .
Idea for the future is to have Wasp being able to produce a mobile version of the app!
So for example, it could produce a mobile client/app, besides the web client.
Main thing to explore here is react-native, possibly expo.
@ErlisK did some initial playing with this on his own, and manually got Wasp app running with react-native to some degree. Here is Discord convo where he talks about it a bit.
Some of the main stuff that @ErlisK said:
export default function App() {
}
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, });