The prevalence of diabetes is rising globally. Diabetes patients need continuous monitoring, and to achieve this objective, they have to be engaged in their healthcare management process. Mobile health (MH) is an information and communications technology trend to empower chronically ill patients in a smart environment. Discussing the current state of MH technologies is required in order to address their limitations. Existing review articles have evaluated the MH literature based on applicability and level of adoption by patients and healthcare providers. Most of these reviews asserted that MH apps and research have not reached a stable level yet. To the best of our knowledge, there is no clear description of solutions to these problems. In addition, no one has investigated and analyzed MH in its contextual environment in a detailed way. We conducted a comprehensive survey of MH research on diabetes management articles published between 2011 and September 27, 2017. In this survey, we discuss current challenges in MH, along with research gaps, opportunities, and trends. Our literature review searched three academic databases (ScienceDirect, IEEE Xplore, and SpringerLink). A total of 60 articles were analyzed, with 30% from ScienceDirect, 38% from IEEE Xplore, and 32% from SpringerLink. MH was analyzed in the context of the electronic health record (EHR) ecosystem. We consider dimensions such as clinical decision support systems, EHRs, cloud computing, semantic interoperability, wireless body area networks, and big data analytics. We propose specific metrics to analyze and evaluate MH from each of these dimensions. A comprehensive analysis of the literature from this viewpoint is valuable for both theoretical and developmental progress. This paper provides a critical analysis of challenges that have not been fully met and highlights directions for future research that could improve MH applicability. INDEX TERMS Mobile health, diabetes mellitus, electronic health record, cloud computing, clinical decision support system, big data analytics, wireless body area network, medical informatics.