且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

最小化iOS-Phonegap / Cordova应用程序

更新时间:2023-02-03 09:29:49

这关系到你的观点Nr 2:当应用程序被最小化,即放到背景,pause事件被触发,可以处理。请参阅文档中的详细信息: http://docs.phonegap.com /en/2.2.0/cordova_events_events.md.html#pause

This concerns your point Nr 2: When the App is minimized, i.e. put to the background, the "pause" Event is fired and can be handled. See details in the documentation: http://docs.phonegap.com/en/2.2.0/cordova_events_events.md.html#pause

[UPDATE]:这涉及到Nr.1:你可以写一个phonegap插件让我们调用另一个意图,即主屏幕,这将自动将您的应用程序在后台,而不终止它。另请参见使用Phonegap暂停Android应用

[UPDATE]: This concerns Nr.1: you could write a phonegap plugin that let's you call another intent, i.e. the Home Screen, which would automatically put your app into background, without terminating it. See also Pause an Android App with Phonegap