Mendix allows you to quickly build apps for mobile devices. This document gives an overview of mobile app development with Mendix.
Every app starts at the home page. You can specify different home pages for phones and tablets in the Navigation document. The mobile profiles can be added and removed separately. If you add a profile, you also have to provide its home page. Apart from the home page, different home page for different user roles can be specified. In addition, there is a default menu that can be used in menu widgets.
In theory, you can show the whole desktop site on mobile devices, but you probably want to have optimized pages with simpler layouts and less information. Layouts help you to create pages that suit a device.
For mobile devices, you might want to have a layout that hides the menu in a collapsible sidebar.
You will need at least one layout per supported device type (desktop, tablet, phone) to optimize your app, but you can create as many as you like.
Some widgets are more suitable to mobile use than others. For example, the data grid is not very well suited because of its reliance on multiple columns and multiple search fields. The list view is a simpler, more compact widget for showing a list of objects. Data views lend themselves equally to mobile and desktop usage, but of course this depends on all the widgets you place inside. Some custom widgets can only be used in hybrid mobile apps, because they access native features of the device.
5 Hybrid Mobile Apps
5.1 Hybrid Mobile Widgets
To access native functions of the device, we provide a number of PhoneGap widgets in the Mendix App Store. And, of course, you can build your own custom widgets that use native features. PhoneGap widgets can be recognized by their special icon. You can also search for them by via Edit > Find Advanced in the Mendix Desktop Modeler.
5.2 Offline Apps
Separate profiles are available for building offline apps. These apps can run even when there is no network connection available, because they store their data on the device itself. When the device connects to the network, the user can synchronize with the main application. Note that there are some restrictions compared to connected apps.