-
1. Re: The background task is not activated correctly on Android
kerrishottsOct 1, 2016 12:09 PM (in response to leol91829087)
You might want to use your own backbutton handler instead? Without seeing any code & config.xml settings, it's going to be difficult to troubleshoot.
-
2. Re: The background task is not activated correctly on Android
leol91829087 Oct 6, 2016 3:31 AM (in response to kerrishotts)I've reduced the app to 2 files.
Config.xml and index.html.
And the error still exists.
If I open the app in the course of the installation and then finish it with Back, then inactive task will not be correctly reused.
Each time the app is started, a new task is created.
The inactive tasks remain unaffected.
When I press Back, the pages of the previously inactive tasks are shown.
index.html:
<!DOCTYPE html>
<html lang=de>
<head>
<meta charset='ISO-8859-1'/>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
</head>
<body>
<h1>
<div id="Page1" style="height: 2000px">
This is page 1.
<br><br>
<a href="#Page2">Show page 2.</a>
</div>
<div id="Page2" style="height: 2000px; color:red">
This is page number 2.
</div>
</h1>
</body>
</html>
config.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.example"
versionCode = "10"
version = "1.0.0" >
<name>ABAKUS</name>
<description>
ABAKUS die koenigliche Tarock-App.
</description>
<author href="http://ABAKUS.parseapp.com/" email="Luger.Leo@gmail.com">
Leopold Luger
</author>
<gap:platform name="android" />
</widget>