10-06-2011 11:41 PM
Hi
I have a webworks app.
My push is on a background start page. And I have a different home page as the foreground start page.
Now my registration alert comes up "null" after each start of app 2 or 3 times then "success" when I run it as a foreground start page.
So when its in background start page setting does it reload ever now and then or only once? And if once and that time is "null" I will never have a success registration.
Should I put my push in both the background page and the foreground page? or am I missing something?
10-24-2011 09:16 AM
Have you made any head way with this?
I am using a similar approach. It works on 1st install but subsequent notifications after reading the first notification seems to not fire off. I even tried putting it on an onExit event....I'm not sure whats going on
10-24-2011 12:33 PM
Well....no what I have done is on the home page (index.htm) I did made a main function that loads on body. In that I call the openBISPushListener first then my other methods. It seems to be working fine even if the app is closed
10-24-2011 12:38 PM
Actually I got it to work on the background start page. the wakuppage is the same background start page...seems to work as well.
10-24-2011 12:50 PM
Cool I believe then after a push is received when you open the app it will open on your background page not the index page. Correct?
10-24-2011 02:52 PM
hmmm actually this is the part that puzzles me... Does it automatically open your app? because What I do is upon recieving the notification I showBannerIndicator()
So the user will have to manually open the app....
However I note that AFTER the first push notification I am unable to recieve any more without "re-installing" the app.
11-01-2011 02:58 PM
Any luck on this issue? Is it possible to resume background app?
11-03-2011 04:29 PM
11-17-2011 03:30 PM
You can set your wakeuppage to requestForeground() on some <body onload=> or init() function. This would effectively bring your app into the foreground on a push.