In the Mehta v Gandhi decision (2016 ONSC 2453 [CanLII]), the courts decided on the issue of the jurisdiction for custody for a matter wherein the child was in India and the Applicant seeking custody was in Ontario, Canada. The court decided that since th child was a habitual resident of India, it did not have jurisdiction to decide the issue of custody in Canada.
http://www.canlii.org/en/on/onsc/doc/2016/2016onsc2453/2016onsc2453.html