What is the best practice for commiting objects in native mobile?

0
Hi! I am developing a native mobile application and I am wondering what the best practices are for creating and committing objects to the database. In some cases, I use NPE entities for the user to fill in the fields, do the validations, and if everything is okay, create the persistent related object and commit it to the database. In other situations, I use the persistent entity for the user to fill in, then I create an NPE equal to the persistent one and do the validations. If everything is okay, I commit the object to the database. As I only started working with mobile recently, I am wondering if what I've been doing is fine and if there are some best practices for this.   Thanks in advance!
asked
1 answers
0

Hello Tiago,

 

Mendix summed up some best practices for mobile development here. 

 

https://docs.mendix.com/refguide/mobile/best-practices/

 

In my experience, pay good attention to what you want to synchronize, when you want to synchronize, and which way you want to synchronize things. 

 

Think about the timeliness of your information, does it need to be directly available or is it okay if it takes longer to be available.

 

Also pay special attention to inheritance objects since this can have an effect on your native application, because only one entity is allowed offline.

 

Hope this helps,

 

Good luck!

answered