It's a good question.
The reality is that the way the law is written does encompass any form of communication. The criminal harassment law is completely written in such a way that does encompass online communication, so I don't think the law itself is the problem. The prosecutor in my case performed to the expectations of her profession. I think the problem is more with the way the system is designed, in that there is no one in the process whose job is to support the survivor and advocate for the survivor.
As I said, I understand why the system was built that way, but it means that in situations like gender-based violence, the system just reproduces existing inequities.