urbanairship-core/src/main/java/com/urbanairship/PushProviders.java
private void init(Context context, AirshipConfigOptions configOptions) {
        List<PushProvider> providers = createProviders();
        if (configOptions.customPushProvider != null) {
            providers.add(0, configOptions.customPushProvider);
        }

        if (providers.isEmpty()) {
            Logger.warn("No push providers found!. Make sure to install either `urbanairship-fcm` or `urbanairship-adm`.");
            return;
        }

        for (PushProvider provider : providers) {
            if (!provider.isSupported(context, configOptions)) {
                continue;
            }

            supportedProviders.add(provider);
            if (provider.isAvailable(context)) {
                availableProviders.add(provider);
            }
        }
    }
/**
     * Loads all the plugins that are currently supported by the device.
     */
Loads all the plugins that are currently supported by the device.
Loads all the plugins that are currently supported by the device .
private void init(Context context, AirshipConfigOptions configOptions) {
        List<PushProvider> providers = createProviders();
        if (configOptions.customPushProvider != null) {
            providers.add(0, configOptions.customPushProvider);
        }
        if (providers.isEmpty()) {
            Logger.warn("No push providers found!. Make sure to install either `urbanairship-fcm` or `urbanairship-adm`.");
            return;
        }
        for (PushProvider provider : providers) {
            if (!provider.isSupported(context, configOptions)) {
                continue;
            }
            supportedProviders.add(provider);
            if (provider.isAvailable(context)) {
                availableProviders.add(provider);
            }
        }
    }
private void init ( Context context , AirshipConfigOptions configOptions ) { List < PushProvider > providers = createProviders ( ) ; if ( configOptions . customPushProvider != null ) { providers . add ( 0 , configOptions . customPushProvider ) ; } if ( providers . isEmpty ( ) ) { Logger . warn ( "No push providers found!. Make sure to install either `urbanairship-fcm` or `urbanairship-adm`." ) ; return ; } for ( PushProvider provider : providers ) { if ( ! provider . isSupported ( context , configOptions ) ) { continue ; } supportedProviders . add ( provider ) ; if ( provider . isAvailable ( context ) ) { availableProviders . add ( provider ) ; } } }
Loads all the plugins that are currently supported by the device.
Loads all the plugins that are currently supported by the device .