@Dmitriy and @BlynkAndroidDev would it be possible to remove the url syntax check for the Webhook and Video widget, or at least ask the project creator to confirm acceptance of the invalid url.
When projects are published there is no way for end users to change these url’s and it maybe they want to use a different API or video stream etc.
So if blank url’s were accepted they would simply paste the required details via Terminal etc.
I am guessing there are also other widgets that could be better handled for published projects.
@BlynkAndroidDev that’s taking it a step further than I was thinking. Initially I thought a setProperty wouldn’t work for the end user (hardware buyer) but I guess it would as long as the published app developer includes the code for it.
So end user puts url in Terminal for example and setProperty updates the url.
At the moment we are coding api keys etc into /pin/ from Terminal but the Webhook (or video) widget needs to have a fixed prefix of at least “http://somedomain.com” but the end user needs to be able to change this to “http(s)://anotherdomain.com”.
I’ve checked the code - WebHook should work in such way as it is not clearing url field even if it is wrong, but video would clear (I could change this). Maybe you mean exported apps widget’s settings? In them we have no support for WebHook changes.
Maybe it is not about only the app. @Dmitriy could your look into this issue.
Just to be clear I am referring to “published apps” or specifically the pre publication phase of using “My Apps” to test the resulting published project.
If I leave the Webhook url field with any of these options it gives a red warning message that it’s the wrong format:
I checked with a project (not a My App) to see if /pin/ alone would be accepted for the url.
Webhook fails but no error message on “local” cloud server with debugging level set at debug.
Now, I had got your point. Yep, we do not support /pin/ for formatting webhook’s url. I’m sure for us it would be easier just to add set property url, as this formatting will require work of @Dmitriy who has a lot of other issues to work on. In video widget we seems have this set property ‘url’ from the beginning, had you tried to check it?
but we only want support for /pin/ and it’s for published apps where it’s currently not possible for end users to access the Webhook widget to set / change a domain. We can handle collecting the domain from the end user via Terminal etc.
I took a closer look at the video widget for My Apps today and noticed end users can set the url but once it’s been set it’s not possible to change it.