The problem was not code related, but link to the test phone.
The test phone do not have a SIM, and the clock was not set. So google cannot resgistred it with a wrong time.
I manage to have a registration Id using a Android Virtual Device, with google api, and by setting the test phone clock.