Put a transparent sprite around the obstacle.
When he is overlapping it, make him jump
I did it before, compiled to APK using Cocoon JS
I set some objects to be jumped through, in front of the object I set invisible sprites as the "detector" when to jump
Sometimes and mostly occur when the game is pacing up, the character refused to jump, it simply stuck on the object because it's too fast