Skip to main content

Start Developing

It's simple for SmartPOS

Here are some recommendations of best practices for developing apps on the SmartPOS platform:

Best Practices

Read the Documentation

Start by reading the WPI documentation provided by Worldline. This will give you an overview of the interface and the steps required to integrate it into your app.

Use a Development Environment

Use a development environment that supports Android development, such as Android Studio. This will provide you with the tools you need to build and test your app.

Use the Latest Version of WPI

Always use the latest version of WPI to ensure that you have access to the latest features.

Test on a SmartPOS Device

Test your app on a SmartPOS device to ensure that it works as expected. This will help you identify any issues early in the development process.

Follow Security Best Practices

Ensure GDPR and PCI compliance throughout your development process.

Handle Errors Gracefully

Ensure that your app handles errors gracefully. This includes displaying appropriate error messages to the user and logging errors for troubleshooting purposes.

Use a Modular Architecture

Consider using a modular architecture for your app, which can make it easier to maintain and update in the future.

Implement Unit and Integration Testing

Implement unit and integration testing for your app to ensure that it works as expected and to catch any issues before they make it into production.

Development Best Practices

  • Efficient memory usage: Efficiently manage and release resources that are no longer needed, close cursors, release bitmaps and any other resource that can cause memory leaks. In the case of SmartPOS API service, close the service connection as soon as you retrieved the information you need. Look out for minimizing network usage by implementing efficient caching techniques. For discovering potential leaks in your application, you can check the LeakCanary library.

  • Error handling: Implement proper error handling and exception management to provide robust user experience. Gracefully handle exceptions to prevent app crashes and provide meaningful error messages to users (efficiently log unhandled exceptions).

  • Shrink, obfuscate and optimize your release application: Android Developer Guide

  • Follow Android core app quality recommendations: Android Quality Guidelines

**Important Information** 1. Screens with dynamic loaded text from any external resource in combination with an input field are **not allowed**. 2. **Web-view** technology is allowed under [strict legal conditions](/smartpos/app-development/web-view).

Detailed Information