[Photon] System.sleep interrupt not working

I’m trying to make my Photon enter low power mode and when a button is pressed it wakes up. I have the following code:

int buttonInput = D2;
int led = D7;

void setup() {
    pinMode(led, OUTPUT);
    pinMode(buttonInput, INPUT_PULLDOWN);

void loop() {
    digitalWrite(led, HIGH);
    digitalWrite(led, LOW);
    System.sleep(buttonInput, CHANGE);

The button works (tested the interrupt example).

However this does not work, the Photon is sleeping forever. What is the problem?

See that
Photon (0.4.5 & 0.4.6) not waking up after sleep with interrupt

From that discussion I was unable to conclude anything specific (might have not understood the discussion correctly).

Is it a known bug or something wrong in my setup?

As in the directly linked post there is an open issue about this bug and it hasn’t got anything to do with your setup.

Particle is on it

Thank you!