Object POBAppInstallStatusHelper

  • All Implemented Interfaces:

    
    public class POBAppInstallStatusHelper
    
                        

    Helper 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 enum POBAppInstallStatusHelper.AppInstallStatus

      Represents 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.

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 PackageManager
        cacheManager - The cache manager instance containing app install status configuration
        deepLink - 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)