从后台启动时初始化 phonegap 应用程序

Initialize phonegap application when launch from the background

我在我的应用程序中使用了推送插件。当我单击通知时,我的应用程序将打开,我们将在其中离开(如:第三页)我的应用程序。每次应用程序启动时,我都需要它从初始化状态(主页或应用程序重新启动)开始的状态。

您可以使用 "resume" 等 Cordova 事件在应用程序恢复时返回主页 https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html