How do I initialize mobile PaaS (mPaaS) when my Android project integrates mPaaS using native AAR integration integration?
Answer: Add the following code to your app. If you have used the hotpatch feature (QuinoxlessApplication), you do not need to initialize mPaaS.
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// mPaaS initialization
MP.init(this);
}
}
For more details, see Initialize mPaaS.
In Android mPaaS 10.1.68 baseline versions, what can I do if application not responding (ANR) occurs when code scanning starts?
Answer: In AAR modes, if you have introduced other components in addition to the code scanning component, you must initialize mPaaS. Otherwise, the main thread may stuck.