React Native Chat Notification

I am trying to register token to sendbird but the response is “pending” status

const sb = SendBird.getInstance();

if (Platform.OS === 'ios') {
    const token = await messaging().getAPNSToken();
    try {
        const response = await sb.registerAPNSPushTokenForCurrentUser(token); // response is "Pending"
        // Do something in response to a successful registration.
    } catch (error) {
        // Handle error.
    }
} else {
    const token = await messaging().getToken();
    try {
        const response = await sb.registerGCMPushTokenForCurrentUser(token);
        // Do something in response to a successful registration.
    } catch (error) {
        // Handle error.
    }
}

(post deleted by author)