The first one requires an ePub 3 with a reference pagemap

.
(It's essentially special markup that says, at *this* point, on a (hopefully not too random) specific print ISBN of the same book, the physical page number N started).
The second one requires a device with an Ambient Light Sensor (... that we support. That's pretty much only the Kindle Voyage & Oasis 1, as this was never implemented on the Kobo Aura One).