현재 라이브 중인 서비스입니다.
로그인 관련하여 로그를 추가하여 새로운 버전을 방금 전에 출시했습니다.
11건의 appLogin 호출 중에 6건이 실패했습니다.
관련 코드는 아래와 같습니다.
export default class TossManager extends cc.Component {
static inst: TossManager = null;
protected onLoad(): void {
TossManager.inst = this;
try {
if (typeof tossSDK.setScreenAwakeMode === 'function') {
tossSDK.setScreenAwakeMode({ enabled: true });
}
if (typeof tossSDK.setIosSwipeGestureEnabled === 'function') {
tossSDK.setIosSwipeGestureEnabled({ enabled: false });
}
if (typeof tossSDK.setDeviceOrientation === 'function') {
tossSDK.setDeviceOrientation({ type: 'portrait' });
}
} catch (e) {
console.warn('Toss SDK initialization failed:', e);
}
}
async login(): Promise<any> {
try {
const { authorizationCode, referrer } = await tossSDK.appLogin();
return { authorizationCode, referrer };
} catch (error) {
throw error;
}
}
}
login 호출 부분
Login() {
Analytics.inst.logEvent(A_EVENT_TYPE.toss_login_try);
TossManager.inst.login().then((result) => {
Analytics.inst.logEvent(A_EVENT_TYPE.toss_login_success);
this.connectToServer(ePlatformType.PLATFORM_TOSS, result);
}).catch((error) => {
Analytics.inst.logEvent(A_EVENT_TYPE.toss_login_failed);
PopupMaker.load(PopupMessage).then(p => {
p.setMessageID(StringType.connection_failed_param, error);
p.setOkCallback(() => { window.location.reload(); });
});
});
}
확인해야 할 부분이 있을까요?
참고로 개발팀에서는 로그인이 실패한 적은 없습니다.