The father of a child hanging from a balcony in Paris was shopping and playing Pokémon Go while his son almost fell from a building, authorities said.
The father will be accused of disappearing in action, police said.
The boy was saved by an immigrant from Mali, who climbed the apartment building to rescue him. Mamoudou Gbadama, who was in France illegally, climbed five floors, moving from balcony to balcony, and took the 4-year-old boy to a safe place on Saturday night while a crowd shouted in horror. His actions became viral in social networks, where he was nicknamed "Spiderman".
The unidentified father was arrested during the night for alleged abandonment of the parents, and is expected to appear in court in September
He left the child alone while he bought, then stopped to play Pokémon Go, the prosecutor François Molins told BFM-TV.
The boy's mother was also not home, said Molins, according to ABC News, because he was visiting Reunion Island of France in the Indian Ocean with relatives.
"It took a long time to go home because I had decided to play the game for Pokémon Go smartphones when it left the store," Molins told BFM-TV. "He is devastated because he realizes what he did and the tragic consequences he could have caused."
President Emmanuel Macron praised the 22-year-old hero on Monday and awarded the bravery of the young migrant with an offer of French citizenship and a job as a firefighter.
Gbadama also received a gold medal from the French state for "courage and devotion".
"I just did not have time to think, I ran across the road to go and save it," Gbadama told Macron during the meeting, as previously reported by Fox News. "I just went up and thanked God, God helped me, the higher I got, the more courage I had to climb higher, that's all."
Gbadama said he has authorization to stay legally in Italy, which is where he landed in Europe in 2014 after more than a year in Libya. and a trip through the Mediterranean Sea. He arrived in France in September to join his older brother, who has lived in France for decades.
Gbadama told Macron that he was arrested and beaten during his prolonged stay in Libya, "but I was not discouraged."  The French president said that Gbadama's actions made him worthy of special treatment. Working as a firefighter corresponds to his abilities, said Macron.
"It has become an example because millions have seen it" on social networks, the president said.
Macron is behind a bill that toughens the French immigration law, and he stressed that there is no contradiction between rewarding Gbadama for his act of bravery and working to prevent immigrants from entering France illegally by stopping the arrival of immigrants since its origin.
"An exceptional act does not constitute a policy," he told reporters later, promising to maintain a policy that is "demanding, respectful of our principles" in terms of asylum and "rigorous" in relation to the migratory flow.
The special treatment for Gbadama occurs when authorities prepare to evacuate some 2,400 migrants from makeshift camps in the French capital. The forced closure of the camps is the subject of a heated debate between the mayor of Paris, who wants to ensure that the uprooted are protected, and the interior minister, Gerard Collomb, who was present at the Gbadama meeting with Macron on Monday. 19659003] The Associated Press contributed to this report.