onCreate() 会在首次创建活动时被调用，而不是当活动在后台运行时被调用。每当活动在前台运行时，都将初始化 Branch SDK。如果活动先在后台运行，然后在前台运行，则不能保证将调用此回调，因此将不会初始化 SDK。
The recommended way to initialize the Branch SDK is in
onStart(). This is where you need to initialize the SDK since this callback is triggered every time the app is started whether from a cold start or a warm start. This is the callback that makes the activity visible to the user.
Updated 4 months ago