And that happened because those things have some very visible bad effects (images of cancer all over packages in Europe) and even then there are like 30% smokers on my country. Assuming shock and visible pain are the only way to end such a popular addiction it's going to be tough to end our digital ones.
But at least you showed it's possible, that's something!
Smartpones can already detect that you are travelling above a certain speed on a public road and display a notification that texting while driving is dangerous. Not something I would endorse (too many false positives), but I wouldn't be surprised to see it, either as a result of a law, or as a voluntary "enhancement".