Whilst it is well to be prepared for an EMP attack, this is only likely if a nuclear weapon is detonated at high altitude.

EMP is more or less line of sight, so for nuclear explosion near ground level the effect is very local, and probably largely confined to the area already substantial destroyed by the explosion.

A large scale EMP attack would effectively end the modern age.
I would not expect ANY consumer electronics to survive unless unusually well shielded.
Nor would I expect any modern vehicles to run unless they happened to be parked deep underground at the time.

There is no advance warning of an EMP attack, as has already been said it moves at the speed of light.