Copy link to clipboard
Copied
Hi All
I cannot find some coherent information on this so I am asking here.
I need to write an iOS app that needs to perform a webservice call every x minutes to update the slqite db on the device, even if the application is not running in the foreground.
From google what I could find out was that iOS will only allow your app to run a small time after closing(to finish an upload etc).
e.g. "AIR does not provide support for this iOS background processing model": http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html#articlecontentAdobe_num...
but then later " applications may now support location updates and networking in the background": http://forums.adobe.com/message/4380335http://forums.adobe.com/message/4380335
Can I do what I need in Air 3.3+ an iOS 5.1+ ?
Thank You
Copy link to clipboard
Copied
Thank you Spedronimo.
I really hope it will be fixed soon or we'll all have to start learning another programming language...
Copy link to clipboard
Copied
So, after looking at the bug report - the status is now "closed/withdrawn" with the reasoning of "As Designed"?
So Adobe, you designed this problem and have no plans to fix it?
Could we get any type of answer on this?
Copy link to clipboard
Copied
How could such a big hole in the background processing of the software model be 'as designed'?
I would suggest this may be a big blocker to people using AIR as a platform to develop mobile apps. I know I won't be recommending it until this issue is resolved.
Copy link to clipboard
Copied
Actually, I have tested in my app that, on Android at least ( didn't test on iOS ), execution in the background WILL work if renderMode = gpu, but NOT if renderMode = direct.
In other words, direct appears to be the only render mode which prevents background execution. Unfortunately, the direct render mode is necessary for the Stage3D API to work ( which I have also verified ).
=================================
Why this is a problem for me ( my use case 😞
I am making a graphical alarm clock for Android/iOS, and recently implemented full hardware acceleration via Stage3D. On iOS, I am using local notifications to alert the user when alarm goes off and the app is minimized or closed. Said iOS local notification is scheduled ahead of time, if the alarm has been set, when the app is deactivated.
On Android, unfortunately, I cannot use the same strategy because local notifications on this platform cannot be scheduled ahead of time. Furthermore, with the app minimized and using direct render mode, I cannot trigger the local notification on the spot, while the app is minimized but running in the background. So I am stuck.
The right solution would be:
1) Allow background execution when the direct render mode is used ( preffered ).
2) Use an ANE for the AlarmManager on Android ( none available on the net, as of this writing ).
3) Use push notifications: very heavy handed ( requires server side scripting to schedule the notification ).
Copy link to clipboard
Copied
Hello AsterLUXman,
I am new to mobile develpment and creating a reminder application for Android & IOS using Flash Builder 4.6, Air 3.1. After surfing on net I got that we need to use ANE for the Alarm manager and Push notifications for the Alerts for Android platform. I am confused for this thing. Is there any simple way to create the application in Android.
Kindly Guide/Refer me for the way to develop background running application in Flash Builder 4.6.
Thanks in advance.
Copy link to clipboard
Copied
Some of the statements in this thread are no longer true, or need to be updated.
Here is a recap:
Copy link to clipboard
Copied
Hey, thanks for updating this. I know its a year later now but it was cool that you posted updated info for folks chasing down these same answers. I just wish Apple wasnt so strict with background modes usage... Google will let you upload almost ANYTHING you can build, but iOS, not so much.
Copy link to clipboard
Copied
This really is a big bummer and I don't see how this is not a high priority issue, regardless of the implications it may have.
Saying this is "as designed" simply shows that the design has some major flaws.
Copy link to clipboard
Copied
Hi People,
I've reposted this as a bug... vote for it again if you think its worth the effort.