// 카카오톡 채널 추가하기 URL
val url = TalkApiClient.instance.addChannelUrl("_WCcJd")
// CustomTabs 로 열기
KakaoCustomTabsClient.openWithDefault(context, url) // .open(context, url ) //
오류 내용
166[MainActivity]: ViewPostIme pointer 1
W/System.err: 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:974)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:406)
at androidx.core.content.ContextCompat.startActivity(ContextCompat.java:251)
W/System.err: at androidx.browser.customtabs.CustomTabsIntent.launchUrl(CustomTabsIntent.java:263)
at com.kakao.sdk.common.util.KakaoCustomTabsClient.open(KakaoCustomTabsClient.kt:61)
at kr.co.welrixrental.MainActivity$WebBrideg.javascriptMain(MainActivity.kt:760)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:181)
W/System.err: at android.os.HandlerThread.run(HandlerThread.java:65)