You're not issued a ticket without a name on it. If someone, bylaw officer or cop, comes up to you and starts writing a ticket for smoking and asks for ID, you tell them to kindly go stuff it, you're not breaking any laws. Grow a backbone for gods sake, they're not going to arrest you.
As enjoyable as using that advice is, one needs a bit more information before using it.
If it is a by-law officer, or rent a cop, go stuff it, is always the correct answer as they have no more power than you or I. This applies even if you are doing something wrong.
As for the police, if you do not identify yourself, and they believe you are committing an offence, such as this is, they have the power to arrest you for the purpose of identifying you and investigating. If you have some time to kill and want to waste their time, go for it, they will take you to the station and you will be out in a couple of hours. Means you wasted a few hours of their time, during which they are effectively "off duty" as all their time is spent on you, and costs the system more than they can make on the ticket. Again the option of civil disobedience, if one feels like making a point about this issue.
I have no idea why anyone finds this story unbelievable.. Openly vape in an enclosed public space in front of a police officer. You are going to get their attention and they are going to look into the matter.. We all know there are two types of them, the ones who are question what is going on with an open mind, then decide their actions, and there are the power trippers out looking for a problem, which will most certainly end as described here.