카카오 sdk(1.27.0)을 쓰고있습니다.
android os version은 29(Q)를 사용하여 구현하면 아래와 같은 에러가 발생합니다.
원인이 sdk내부에 있는 FLAG_ACTIVITY_NEW_TASK 추가가 안되어서 나는 오류라고 생각됩니다.
확인부탁드립니다.
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:952)
at android.app.ContextImpl.startActivity(ContextImpl.java:928)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:383)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:383)
at com.kakao.kakaolink.v2.KakaoLinkService$18.onCustomTabsServiceConnected(KakaoLinkService.java:492)
at androidx.browser.customtabs.CustomTabsServiceConnection.onServiceConnected(CustomTabsServiceConnection.java:33)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1948)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1980)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)