Best Practices
The information here applies only for Showpad Apps v1 (deprecated). While your existing v1 Showpad Apps will continue to work, we strongly recommend:
- Creating new apps with Showpad Apps v2
- Migrating your v1 apps to v2
Showpad wants your custom Showpad App to be spectacular. While you're in total control of the design and development of your app, we've come up with a few best practices to take into consideration:
-
Be sure you're familiar with Showpad concepts and terminology.
-
Have clearly defined goals and requirements for your app.
-
Use the DRY (Don’t Repeat Yourself) principle.
-
Be consistent and use standardized naming conventions.
-
Make your code as easy to understand as possible for easy collaboration.
-
Keep your DOM (Document Object Model) as lean as possible. Hide/remove elements you are not using.
-
Showpad Apps are shown in an iframe, so you should make sure your viewport dimensions and overflow are set up correctly. When possible, use a responsive design.
-
Don’t rely on asset IDs. They can be different on different platforms.
-
Some functions are not available on all platforms. Put them in a try-catch and handle these cases gracefully.
-
Test, test, test (in your Showpad instance).