com.wonderpush.sdk.WonderPushInitializer |
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>
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
initialize(Context context)
Initialize the
WonderPush SDK with your client id and client secret. |
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)
}
context | The Context you must pass on to initialize(Context, String, String) .
|
---|