Android Integration Checklist
The following is a checklist of integration tests that need to be completed to verify the integration is working as intended, as applicable:
- Update the Fairmatic SDK keys on the new build.
- Verify if the SDK is initialized at application startup (if the user is already logged in).
- Verify if the SDK is initialized at user login and signup.
- Verify if you received the success callback from SDK initialization.
- Ensure that SDK initialization failures are handled correctly — a simple setup retry logic should be added and an error should be displayed to the user in case the setup never succeeds, even after retries.
- Verify that SDK teardown is not called from onDestroy or similar lifecycle methods of an Activity of the application. Calling teardown in the lifecycle methods of an activity will cause Fairmatic SDK to go dormant if someone opens or closes the app temporarily. Fairmatic SDK should be explicitly turned off only due to business logic and not system-triggered events.
- Verify that the app is subscribed to the
BOOT_COMPLETED
intent and restarting the phone automatically triggers Fairmatic setup and any expected Fairmatic callbacks. This can be quickly verified by adding some logs in callbacks. - Verify that the app is subscribed to the
MY_PACKAGE_REPLACED
intent. The intent is needed in case the app is upgraded and is no longer running. Subscribe to theMY_PACKAGE_REPLACED
intent and start your app automatically which should trigger re-initialization of the Fairmatic SDK. - Ensure that Fairmatic Error Codes during Fairmatic SDK operations are handled properly.
- Check for Setting Errors and Warnings.