# Register notification token result "pending"

**URL:** <https://community.sendbird.com/t/register-notification-token-result-pending/2421>\
**Category:** JavaScript\
**Tags:** chatsdk\
**Created:** [June 8, 2021, 9:03am UTC](https://community.sendbird.com/t/register-notification-token-result-pending/2421 "2021-06-08T09:03:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyoeun](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hyoeun](https://community.sendbird.com/u/hyoeun)\
**Post date:** [June 8, 2021, 9:03am UTC](https://community.sendbird.com/t/register-notification-token-result-pending/2421/1 "2021-06-08T09:03:09Z")

</div>

push notification device token 을 등록이 안됩니다.

`pushSettingCallback` 의 result 의 값이 “pending” 으로 나옵니다.  
그리고 dashboard 에서 user 정보를 확인하면 device token 이 등록되어 있지 않습니다.

```auto
PushNotification.configure({
  onRegister: async ({ os, token }) => {
    const sb = new SendBird({ appId: config.sendbird_app_id });
    console.log('sendbird---->', sb);
    if (Platform.OS === 'ios') {
      const result = await sb.registerAPNSPushTokenForCurrentUser(token);
      console.log('registerAPNSPushTokenForCurrentUser');
      console.log('result ', result); // result = "pending"
    } else {
      console.log('token------->', token);
      const result = await sb.registerGCMPushTokenForCurrentUser(token);
      console.log('registerGCMPushForCurrentUser');
      console.log('result ', result); // result="pending"
    }
  },
.....

```

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [June 8, 2021, 1:57pm UTC](https://community.sendbird.com/t/register-notification-token-result-pending/2421/2 "2021-06-08T13:57:17Z")

</div>

Hi @hyoeun,

How are you getting your token? It looks like the you’re passing it into your onRegister method. Are we sure that you’re actually passing in a token?

---

<div class="post-metadata">

**Author:** ![Yongjun\_Choi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yongjun_choi/32/36_2.png) [@Yongjun\_Choi](https://community.sendbird.com/u/Yongjun_Choi)\
**Post date:** [June 9, 2021, 1:46am UTC](https://community.sendbird.com/t/register-notification-token-result-pending/2421/3 "2021-06-09T01:46:56Z")

</div>

Hi @hyoeun

해당 API가 호출되는 시점에 Sendbird의 connection이 되어 있는 상태일까요?

---

<div class="post-metadata">

**Author:** ![hyoeun](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hyoeun](https://community.sendbird.com/u/hyoeun)\
**Post date:** [June 10, 2021, 12:45am UTC](https://community.sendbird.com/t/register-notification-token-result-pending/2421/4 "2021-06-10T00:45:31Z")

</div>

connection 이 되어 있지 않은 상태였습니다. connection 후 등록이 잘 되는 것을 확인했습니다.

---

<div class="post-metadata">

**Author:** ![Yongjun\_Choi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yongjun_choi/32/36_2.png) [@Yongjun\_Choi](https://community.sendbird.com/u/Yongjun_Choi)\
**Post date:** [June 10, 2021, 1:12am UTC](https://community.sendbird.com/t/register-notification-token-result-pending/2421/5 "2021-06-10T01:12:17Z")

</div>

네 다행입니다.  
Connection 이후에 세션이 생성되어 API통신이 가능하니 참고하세요.  
감사합니다.
