HMS v1.00 adds support for DRM verification.
It allows checking whether the app was purchased from the store or not.
It is very simple to integrate. Make sure to use the latest version of HMS and include the two new dependencies (drm and apptouch).
It will show a dialog if the app was not purchased and take the user to the store page.
You can add a test account and it will be treated as if it was purchased from the store.
The CheckDRM method will only work in B4XPages projects.
HMS - Huawei SDK
Huawei is the number one manufacturer of phones (https://www.statista.com/statistics/271496/global-market-share-held-by-smartphone-vendors-since-4th-quarter-2009/). Due to USA restrictions, the new phones that they sell do not include Google Play, Google Play Services and other Google...
www.b4x.com
It allows checking whether the app was purchased from the store or not.
It is very simple to integrate. Make sure to use the latest version of HMS and include the two new dependencies (drm and apptouch).
- Find the project DRM ID and key:
- Add to manifest editor:
B4X:CreateResourceFromFile(Macro, hms.hms_drm)
- Call CheckDRM with:
B4X:Wait For (hms.CheckDRM(Main.DRM_ID, Main.DRM_KEY)) Complete (Success As Boolean) If Success = False Then Log("Not purchased") 'ExitApplication End If
It will show a dialog if the app was not purchased and take the user to the store page.
You can add a test account and it will be treated as if it was purchased from the store.
The CheckDRM method will only work in B4XPages projects.
Last edited: