uniapp代码:
public class NIMProxy implements AppHookProxy {
@Override
public void onCreate(Application application) {
SDKOptions mSdkOptions = new SDKOptions();
mSdkOptions.appKey = NIM_APP_KEY;
NIMClient.init(application, null, mSdkOptions);
}
}
原生代码:
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
SDKOptions mSdkOptions = new SDKOptions();
mSdkOptions.appKey = NIM_APP_KEY;
NIMClient.init(this, null, mSdkOptions);
}
}
稻草人wei (作者)
用离线打包改造application初始化逻辑就可以了
2020-08-25 14:35
稻草人wei (作者)
云打包反正死活都是初始化失败,问题点已经确定就是之前看源码分析的
2020-08-25 14:36