public interface

WonderPushInitializer

com.wonderpush.sdk.WonderPushInitializer

Class Overview

Interface for the self-initialization of the SDK.

You must implement this interface and register your implementation in the AndroidManifest.xml as follows:

<application>
    <meta-data android:name="wonderpushInitializerClass" android:value="com.package.YourWonderPushInitializerImpl"/>
</application>

Summary

Public Methods
abstract void initialize(Context context)
Initialize the WonderPush SDK with your client id and client secret.

Public Methods

public abstract void initialize (Context context)

Initialize the WonderPush SDK with your client id and client secret.

This method should retrieve the client id and client secret that you took care to hide securely in your application.

It must then call initialize(Context, String, String) with the Context given in argument, and the retrieved credentials.

@Override
public void initialize(Context context) {
    String clientId;     // retrieve these credentials
    String clientSecret; // from a protected storage
    WonderPush.initialize(context, clientId, clientSecret)
}

Parameters
context The Context you must pass on to initialize(Context, String, String).