The invention provides an android page return
jumping method and
system based on
hybrid development, and the method comprises the following specific steps: S1, enabling a native
system to intercept anandroid return key through an onKeyDown method for overwriting Activity, and obtaining a single click event of the return key; S2, calling a backView method in the web end goBack method to search a web end
historical record in the IonicHistory stack, and judging a superior page type of the current
web page; S3, when the upper-level page is the
web page, calling a USID Histolay.goBack method to return to the upper-level
web page; and S4, when the superior page is the
native page, calling a goBack method registered by the android
native page to return to the
native page. The
system comprises anAndroid terminal monitoring module, a Web terminal monitoring module, a judgment module, a web terminal return module and an Android system return module. According to the method and the system, thetypes of the superior pages can be correctly judged after the return operation occurs, and the superior pages are returned in sequence, so that the problem of page skipping errors of
hybrid development
software is avoided.