Two men are facing charges in connection with an alleged attempted robbery and home invasion in Nova Scotia that prompted a police chase in New Brunswick.

The RCMP say the men tried to commit a robbery and home invasion in Springhill, N.S. shortly before 5 p.m. Tuesday and then fled from police into New Brunswick.

“The call that we received involved a suspect that was wearing a mask and had a long barrel firearm and he was using the gun to break the glass in the window of the door of the victim’s home,” said Nova Scotia RCMP spokeswoman Cpl. Jennifer Clarke.

The RCMP in Nova Scotia contacted the RCMP in New Brunswick around 6:30 p.m. and asked for assistance in stopping the suspects’ vehicle, which was headed westbound on the Trans-Canada Highway.

“Our officers from Shediac detachment and Riverview detachment responded, set up on the Trans-Canada Highway near the highway 15 turn off to Shediac,” said Sgt. Patrick Tardif of the New Brunswick RCMP.

Police deployed a spike belt along the highway in Painsec, N.B., forcing the vehicle to come to a stop near Exit 467B.

Police say the two suspects fled on foot, but a K9 unit tracked them down a short time later.

They were arrested and taken to hospital for minor injuries and later released into police custody.

A member of the New Brunswick RCMP was also injured while responding to the call and was treated in hospital and released.

A 42-year-old man and a 36-year-old man, both of Riverview, N.B., appeared in Moncton provincial court Wednesday to face charges related to the incident in New Brunswick.

Christopher Glennie and Nathan O’Brien, both from Riverview, N.B., appeared in court today. Glennie is facing 10 charges, while O’Brien is facing 14 charges. Both men have also been ordered not to have any contact with one another.

Of the 24 total charges, some of those include - flight from police, possession of a weapon for a dangerous purpose, and possession of property obtained by crime -- and that is only in New Brunswick.

They are also expected to face charges related to the alleged attempted robbery and home invasion in Nova Scotia.

“Nova Scotia RCMP will be laying charges on these two individuals at a later date,” Clarke said.

A New Brunswick RCMP officer returned to the scene today with a police dog to scour the area and footprints could still be seen in the snow.

Tardif said since the suspects fled quickly on foot, it’s possible they dropped something in the snow that couldn’t be seen Tuesday night.

“It's kind of routine that we go back to make sure we didn’t miss didn't miss anything,” Tardif said.

Glennie and O'Brien will be back in court Friday at 1:30 p.m. for their bail hearings before they are sent to Nova Scotia to face more charges.

With files from CTV Atlantic’s Kate Walker.