In your BaseApplication
, in the overrided onCreate()
method after calling super.onCreate()
, configuration your app with following data
- Operator code - Given by REVE
- User name - the phone number with country code in flat format.
You must call pin creating api with that User name.
Flat format example :
Regular format = +8801767-692072 Flat format = 8801767692072
Regular format = 01767-692072 Flat format = 8801767692072
-
Password : password for the user name
-
Default country iso : The country where majority users are in. For example "bd" for Bangladesh.
Finally call
ReveSaaS.configure(yourConfiguration);
Sample code :
public class BaseApplication extends ReveSaaSApplication {
@Override
public void onCreate() {
super.onCreate();
ReveAppConfig config = ReveAppConfig.newBuilder()
.withOpCode(getOperatorCode())
.withUserName(getUserName())
.withPassword(getPassword())
.withDefaultCountry(getDefaultCountry())
.build();
ReveSaaS.configure(config);
}
@Override
public void onTerminate() {
super.onTerminate();
}
}