My question is: can I selectively download/show videos when the user's device is on Wifi?
Background: I have some large videos in my e-book, which make the e-book 'heavy'. So I want to download them only when they are necessary, they are not an essential part of the book. I would like to alert the user if the video will be downloaded via a cellular network, which might bring high costs. The book will be published as an iOS and Android app.
iOS has a 'reachability ' api, to detect if the iOS device is on wifi or cellular. As far as I can see, this is not accessible from PubCoder, nor from javascript. An alternative might be measuring connection speed, yet that wouldn't help, because there is slow wifi and fast 4G and vice versa. It's not the connection speed that counts, but its costs.
Do you see any other way to solve this? Any help would be appreciated!