I’m developing an extension which requires the streamer to configure some stuff.
I got everything working fine on desktop, but the configuration doesn’t seem to be loading on my phone.
The first weird issue I noticed (in desktop) is this one:
- In the sample twitch projects, they always wait for the callback set with window.Twitch.ext.configuration.onChanged. But if the configuration has already loaded before you call it (you could be waiting for something else to load before you set this callback), it will never fire. You have about 40ms, depending on your internet connection.
That can be worked around, even though it’s very unintuitive (and the onChanged name makes it seem like it will fire every time a configuration change is made, in real time)
The real problem is that the configuration straight up doesn’t load for me on mobile. I tested it with in a real device with both an approved version, hosted test, and local URI (using http and a subdomain that points to my pc’s local address).
I took a couple of screenshots to illustrate this issue:
The code for the screenshots tests is very simple can be found here: <!DOCTYPE html><html> <head> <meta charset="UTF-8" /> <meta name= - Pastebin.com. It won’t work for a hosted test, but I moved the js to it’s own file and tested it with the same result.
Am I missing something? I think it could be an issue with my extension, since other extensions seem to be able to load configs fine.