This issue can occur if your application's build file includes the Huawei Mobile Services (HMS) push dependency.
When the Pushwoosh SDK is initialized, it checks for the presence of push service modules to determine the device's platform. If the HMS module is found within your app's package, the SDK performs a check for HMS availability. On some non-Huawei Android devices, this check can produce a false positive, causing the device to be registered as a Huawei device.
Solution
To ensure correct platform detection, you should create separate application builds (flavors or variants) for different app stores:
- For Google Play Store: Create a build variant that does not include the HMS dependency.
- For Huawei AppGallery: Create a separate build variant that does include the HMS dependency.
By separating the builds, you ensure that only devices intended for the Huawei ecosystem are checked for HMS, preventing misidentification on other Android devices.
Comments
0 comments
Please sign in to leave a comment.