Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Can Drupal be used to develop native (non web) applications?
I have used Drupal since 2010 to create websites and I recall a few years back reading that it can be used to create smartphone applications (or something similar).
Is this only the "web-integrated part" of such applications or the applications themselves and if its the applications themselves how can this be feasible with a CMS aimed for a LAMP environment?
1 answer
Just to confirm the terminology commonly used in mobile app development:
- Native apps - Written in compiled languages compatible with the target platform, uses platform-specific APIs.
- Hybrid apps - A "native" framework that loads web pages in a WebView (even if they are served from device storage) and has access to platform-specific APIs if the framework supports them.
- Progressive Web Apps - Written exclusively for the web, a PWA may only use web APIs. Platforms may allow users to add PWAs to app select screens, specify an image to use for a splash screen while loading, use the PWA offline, and hide the address bar to mock a fully-native experience.
With that out of the way, Drupal lists a few resources to get started with mobile development in their documentation. Unfortunately it's quite outdated, as PhoneGap has been discontinued and all the other resources show their age.
The sections headed Native apps for iPhone... and Native apps for Android appear to only include examples using Drupal as a RESTful API, so you are creating a whole app UX/UI from scratch on each platform, not with Drupal.
The section titled Native apps with Titanium is different, because Titanium is a Javascript framework that compiles to both iOS/Android target platforms. Provided the Drupal for Titanium module is up to date with today's devices, that would be considered native by most people.
Though PhoneGap doesn't exist anymore, Apache Cordova lives on as a hybrid app framework and is a good first start for someone not yet comfortable with native frameworks. It is compatible with Drupal or any other CMS.
Finally, here's info on Drupal PWAs.
0 comment threads