Often the rule is that one gets the vote in local elections after living for some time, but only citizens can vote in national elections (Parlament, President). This makes sense. If you want to fully participate in a society, you should integrate and become a citizen.
I personally believe that voting should be based on residency, not citizenship.
If you live in the country you can vote. If you don’t live in the country you can’t vote. Simple.
No taxation without representation.