repositories {
maven {
url "http://maven.delsystems.net/public"
}
}
debugImplementation ‘com.ocamba:hoood—debug:{latest-version}’
releaseImplementation ‘com.ocamba:hoood:{latest-version}'
Create Application class and choose one of two ways to initilaize ocamba
<meta-data android:name="com.ocamba.ApiKey" android:value=“API_KEY" />
Open application class and in onCreate method add following:
OcambaHoood.init();
OcambaHoood.init("API_KEY");
OcambaHoood.push().setPushResponse(new OcambaResponseCallback() {
@Override
public void onFailure(Exception e) { }
@Override
public void onResponse(int code, String response) { }
}).init();
NOTE: replace API_KEY with your app api key
NOTE: our recommendation is add OcambaHoood.init() method inside onCreate() method of Application class
Your feedback helps us improve our docs.