New Zealand will play host to Bangladesh in a friendly match on August 12, 2018.
The second half of the 2018 Rugby World Cup kicks off on August 15.
The Kiwis are playing their first match in five years, with the match being a pre-qualifying match for the 2018 World Cup.
This is the third time the two sides have met, with New Zealand taking a 20-16 victory in Auckland in December 2019.
The New Zealand Rugby Union has said it will play the first match of the 2019 Rugby World Series in New Zealand, which starts on September 17.
It is the first time New Zealand has played in the 2019 tournament and will be the third game for both sides.
The New York Cosmos are the second club in the country to be invited to play in the game.
The Cosmos defeated the US Eagles, 23-16, in New York in 2019.