Don't have Telegram yet? Try it now!
https://nishantrana.me/2013/09/25/appweburl-or-spappweburl-is-undefined-error-in-sharepoint-2013-auto-hosted-apps/
appweburl or SPAppWebUrl is undefined error in SharePoint 2013 Auto Hosted Apps