This doesn't make any sense here. Internally in this package, we are calling getAPNSToken(). but for that value(if nulls), then we are throwing this exceptions "APNS token has not been set yet. Please ensure the APNS token is available by calling getAPNSToken()." even though we are already calling this function.