AS3 Air app needs to continue running in the background - actionscript-3

I am developing an app for iOS and Android that monitors a users locations and plots a course with markers every 10 seconds or so however when the phone is locked the location stops tracking and plotting the positions stop.
I have added UIBackgroundModes to location and also .executeInBackground = true.
Anything I could be missing?

I think you should ask this permission.
Yet the IOS is through incosistente this sense, not necessarily you'll get an update every 10 seconds.
Permission -> Background Location Updates

Related

save state chrome extension with event pages

I have a Chrome extension I am working on that queries a remote server and shows a desktop notification when it changes. I am using an event page which will frequently go to sleep so I use a Google Alarm to have it do a check every 5 minutes. I save the last state out into a variable and compare it to current state to determine if a desktop notification should be displayed. I'm finding this last state variable is frequently going undefined when chrome is not in the foreground or under other conditions. I have a few variables this may be happening to as well.
How do I prevent this from happening?

How to write an app that does not open a window in Windows Phone

I want to write an app that just manipulates the content of it's own tile and then silently terminates.
How do I get rid of any default window and splash screen?
Thanks!
You cannot do this fully. Tapping the tile will always launch the app so there will always be a context switch even if it exits immediately.
The closest you can get is to write a Silverlight app and not include a SplashScreenImage.jpg file. When the app starts up immediately exit by calling Application.Terminate (Runtime apps always show their splash screens while loading, but splash screens are optional for Silverlight apps).
This isn't recommended and is likely to confuse your users. A better design would be to let the app launch and do something useful such as displaying more information about what is on the tile or letting the user know what changes are being made.
As Romasz says, this may not pass certification. See Windows and Windows Phone Store Policies for the certification requirements. I suspect an immediate exit with no reason given will appear as and be treated as an app crash.

Co-ordinates on wp8 emulator

I am trying to get my current location; my code is correct but wp8 emulator is giving every time same results (Microsoft place while I am in Asia). I also read people posts even on stack overflow but I could not understand their answer. they are saying set location from emulator ">>" "Location". I want to know can emulator give me correct answer when I run my app ? Is it emulator fault ? how will it work on real device ? will it give same wrong results or correct ones ?
Thanks
The WP8 emulator doesn't have a GPS or other means to get a location like a phone or other devices might be able to. So, the emulator has other ways of getting location information.
If you want to change your location settings around, you need to click on the double chevron to the right of the emulator. This will open up the additional tools menu. Click on the Location tab. Then, click anywhere on the map to set your emulator's location to the place where you clicked. When you run code to get the location it will reflect the new location.
Now you asked
can emulator give me correct answer when I run my app
The emulator does not know where it is, you set its location in the way described above. So, as long as you give it a location you deem correct then it will be correct.
how will it work on real device
On a real device there are multiple ways of obtaining the location. 1. GPS. 2. Location of cellular towers. 3. You could connect to a Wifi network (The location of some wifi connection points can be ascertained by the phone.) The phone will use one of these mechanisms to get the location.
It will work fine on real device. Emulator doesn't have required hardwares to detect your location correctly (such as mobile GPS) when a real windows phone device has.
That's the reason why people setting location in emulator manually for purpose of testing their location-aware application.

How to build a windows phone 8 application like kid's corner?

I need help on how to build an app for windows 8 phone which is exactly similar to Kid's Corner application which is available with NOKIA LUMIA 520.
I registered with the App Studio of Microsoft and tried to create a simple application like album but as a nubee I am not aware of all fundamentals and so need a simple guide.
Here is what I want my application should do:
Once you launch it, you can not go back until you lock phone and unlock it using password. same way as Kid's Corner.
I want that the app user should be able to see videos and photos only which the app is allowed to access.
User should be able to Zoom photos and play pause videos and using touch-slide can view the next one.
User should not be able to delete any files.
Thanks for pointing me to the exact resource where I can find some things which are easy to understand and simple to do :) .
Thanks a lot!
EDIT:
Is it possible to get the source code of Kid's Zone/Corner application?
1. Once you launch it, you can not go back until you lock phone and unlock it using password. same way as Kid's Corner.
This is impossible to lock user into your app. User always can exit or suspend your app using hardware buttons, you just can handle back button tab, but user also can touch to startmenu button or can hold to backbutton.
And you cant get kid zone's source code, its part of Windows Phone OS.

location based proximity alert in windows phone 8

Is there any way to add location for proximity alert in windows phone 8 ?
For example .Suppose I have added a particular location xyz with radius 50 meter .Once user entered in the location xyx proximity alert should be triggered .
How to do this?
I did in android but I do not know how to do in windows phone 8 . I checked official documentation as well as I googled but I got nothing
Any help is appreciated
WP7/WP8 doesn't allow for full multitasking. As such having a background process open at all times listening to geoloc changes isn't a possibility.
Depending on your usecase though you could consider using WP8 geolocation tracking background support. Your app first has to be launched by the user and if may remain open in the background as long as it's tracking location and no other location tracking app has been activated. You can read more about how to create geolocation tracking apps on MSDN # http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662935%28v=vs.105%29.aspx
A good example for when a geolocation tracking app can be used for proxmity alerts is an easter egg hunt game. After the user launches the app they can move it to the background and have it popup ShellToasts and Tile updates corresponding to a user's location.