Object POBAppInstallStatusHelper
-
- All Implemented Interfaces:
public class POBAppInstallStatusHelperHelper utility for determining app installation status based on deep links.
This singleton object provides functionality to check if an app is installed on the device by analyzing deep links and querying the package manager against a list of allowed bundles.
Supports:
Standard deep links (e.g., myapp://path)
Intent-based deep links (e.g., intent://...)
PubMatic proprietary deep links
Note: App links (https://...) are not supported.
Requirements:
For Android 11+ (API 30+), declare packages in AndroidManifest.xml using <queries> element
No QUERY_ALL_PACKAGES permission required if packages are declared in manifest
- Since:
SDK v5.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumPOBAppInstallStatusHelper.AppInstallStatusRepresents the installation status of an app on the device.
This enum is used to communicate the result of app installation detection based on deep link analysis. The integer values are designed to be compatible with MRAID (Mobile Rich Media Ad Interface Definitions) specifications and can be directly passed to JavaScript contexts.
-
Field Summary
Fields Modifier and Type Field Description public final static POBAppInstallStatusHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static POBAppInstallStatusHelper.AppInstallStatusdetermineAppInstallStatus(Context context, POBCacheManager cacheManager, String deepLink, String aDomain)Determines the installation status of an app based on bundle ID and permissions. -
-
Method Detail
-
determineAppInstallStatus
final static POBAppInstallStatusHelper.AppInstallStatus determineAppInstallStatus(Context context, POBCacheManager cacheManager, String deepLink, String aDomain)
Determines the installation status of an app based on bundle ID and permissions. This API supports
Standard deeplinks,
PubMatic proprietary deeplinks Note: The the app link is not supported.
- Parameters:
context- The Android context for querying PackageManagercacheManager- The cache manager instance containing app install status configurationdeepLink- The deep link of the app to check app install status.aDomain- The domain to check- Returns:
Installation status: 1 (installed), 0 (not installed), -1 (unable to detect)
-
-
-
-