Mine is a canvas app as well. I am already doing exactly what you recommended on how to set local vars so perhaps I have something else wrong somewhere, Thanks for your time!
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand