hazemhagrass / phonegap-background

37 stars 12 forks source link

some issues #3

Closed bau720123 closed 10 years ago

bau720123 commented 10 years ago

I am using phonegap build 3.3 and ios 7.0.4 when I run your example https://github.com/hazemhagrass/phonegap-background/blob/ab89bcb9287685092504e462501d131185ecb1e9/README.md

the "Run in the background infinitely" is good work,it will 0..1..2..3.... but ...

Q1 when I run the "Run in the background for specific amount of time(seconds)"

var timerCount = 0;
var seconds = 10;
window.plugins.BackgroundJS.SetBackgroundSeconds(seconds, function(){}, function(msg){console.log(msg);});
setInterval(function() {
$('body').html(timerCount++);
},1000);

it seem always run Infinite loop,Even the seconds is great than 10

Q2 when I run the "Stop running background tasks immediately"

window.plugins.BackgroundJS.UnlockBackgroundTime(function(){}, function(msg){console.log(msg);});

but the timerCount still loop and never stop

Q3

console.log(msg);

the msg can't be alert

alert(msg);
bau720123 commented 10 years ago

any feedback or suggestion?

hazemhagrass commented 10 years ago

I will check this issue ASAP

On Mon, Feb 10, 2014 at 11:33 AM, bau720123 notifications@github.comwrote:

any feedback or suggestion?

Reply to this email directly or view it on GitHubhttps://github.com/hazemhagrass/phonegap-background/issues/3#issuecomment-34612997 .

Thanks a lot Hazem Mohammed Hagrass

bau720123 commented 10 years ago

OK thanks @hazemhagrass if you have any time,just check it~

bau720123 commented 10 years ago

hi @hazemhagrass is there any update information or.... tks~

bau720123 commented 10 years ago

anything update?

bau720123 commented 10 years ago

hi @hazemhagrass well~2 months passed is the plugin still have some fixed maybe by the future?

bau720123 commented 10 years ago

well~ anything update?

hazemhagrass commented 10 years ago

@bau720123 Q1: I tested it on multiple devices but it is working

hazemhagrass commented 10 years ago

@bau720123 Q2: working too

mohamed-salah commented 10 years ago

about Q1, Q2 you must add app in background (by clicking in home button) to see the timerCount stop other than the timerCount will always run in Infinite loop

bau720123 commented 10 years ago

hi @hazemhagrass and @mohamed-salah and thanks @mohamed-salah Specifically finally understand until you told me these

mohamed-salah commented 10 years ago

you are welcome @bau720123 :)