DEV Community

Discussion on: What did you do when you want to share logic between iOS and android?

Collapse
 
vietstone_ng profile image
Viet Nguyen Tran

Yes, we're really looking for a way to share things between 2 platforms. Shared API and mockup are good start. I think we can share the same data structure and logic. But how to keep them synchronously between the two is the problem.
Can you share more about API have all (most) of the logic?

Collapse
 
kip13 profile image
kip

But how to keep them synchronously between the two is the problem.

This is more related in how each team(iOS & Android) is organized, I mean for every new change in the API each team should be work to apply it in the app.

Remember the API team is just one.

Can you share more about API have all (most) of the logic?

Imagine this:

I'm not an expert in mobile development but I'm gonna build something and this are the basic steps to start IMO.

You have alternatives to build the backend(API, Database, etc) more quickly, I think the most popular is Firebase, the advantage is the multiple amazing features that Firebase offers.