1) Helpshift初始化
接口说明:
研发必须在游戏工程自定义的Application类的onCreate方法中初始化helpshift,初始化代码如下:
代码示例:
//apiKey,domain,appId 必须换成游戏自身的参数,请咨询游戏运营人员。
String apiKey = "3f90656085c4c34b058e632e2d9094a2";
String domain = "r2games.helpshift.com";
String appId = "r2games_platform_20190227035012043-51270625405acfd";
InstallConfig installConfig = new InstallConfig.Builder()
.setEnableLogging(true)
.build();
Core.init(Support.getInstance());
try {
Core.install(this, apiKey, domain, appId, installConfig);
Log.i("rn_sdk", "--- Helpshift Init Done Successfully ---");
} catch (InstallException e) {
e.printStackTrace();
Log.e("rn_sdk", "Init Exception:" + e.getLocalizedMessage());
}
Last updated
Was this helpful?