Two Alberta teenagers were apprehended after they accidentally crossed the U.S. border into Montana while playing the game Pokemon Go, U.S. Border Patrol officials say.

"Both juveniles were so captivated by their Pokemon Go games that they lost track of where they were," the service said in a release on Friday.

Border Patrol Agent John South says the teens wandered into the United States near Sweet Grass, Montana, which borders the town of Coutts in Alberta.

South says agents briefly detained them while contacting their mother, who was nearby on the Canadian side.

The agents then released the children to their mother.

South declined to release the teenagers' names, ages or describe what sort of terrain they crossed.

MORE NEWS | All 10 of Alberta's fastest-improving schools are public: Fraser Institute report

MORE NEWS | Garage sale app brings thrifting into the 21st century