[안드로이드] 안드로이드에서 onCreate() 대비 onStart() SDK를 초기화하는 것을 권장하는 이유는 무엇입니까?
onCreate()
액티비티가 처음 생성될 때 호출되며 액티비티가 backgrounded 상태일 때는 호출되지 않습니다. Branch SDK는 활동이 예측되지 않을 때마다 초기화됩니다. 활동이 backgrounded 되었다가 foregrounded되는 경우, 이 콜백은 호출되도록 보장되지 않으므로 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 about 1 year ago