푸시 토큰

푸시 토큰은 오디언스 빌더와 클라이언트 콜백에 사용됩니다.

푸시 알림 토큰을 받거나 값이 변경되면 Adjust에 전송할 수 있습니다. 토큰과 함께 setDeviceToken 메서드 를 호출하시기 바랍니다. 델리게이트 파일의 didRegisterForRemoveNotificationsWithDeviceToken 메서드에서 이 작업을 수행해야 합니다.

Objective-C
Swift
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    [Adjust setDeviceToken:deviceToken];
}

웹뷰에서 푸시 토큰에 액세스할 수 있는 경우 자바스크립트에서 setDeviceToken 메서드를 호출할 수 있습니다.

Javascript
Adjust.setDeviceToken(deviceToken);