01-05-2014 10:12 AM
67 123
tools
  1. ChMar's Avatar
    Sorry Chmar, you've made sense and had good points up until now, but now you just talk nonsense sorry.. What viruses on Android? Nevery had them in 3 years. UAC? The thing that asks me if i'm sure i want to minimize the window? C'mon now..
    Look for percentage of android malware on google or bing or whatever. See how you dismiss the UAC :). Everyone does this. Today viruses are not like 1980 viruses that deleted your files or block your computer from running. And seriously look for that article on the security experiment where an malware in disguise was able to buy in user name from amazon. I know it sounds crazy but is all real and I believe that if you spend 10 minutes looking for it you will find all the info you need. The batman and instagram examples are exactly my point on how legit apps (legit meaning apps by big companies) have more power over your device than they should be allowed.

    If you are up for the challenge allow me 3 days to make an android app (game or what you like) and allow me to by myself something from amazon. And I will show you how easy it is to abuse of your money. Or just allow me to post on your facebook account that I own you :)
    MKairys likes this.
    08-20-2013 07:02 PM
  2. ChMar's Avatar
    Not necessarily. You'll notice that some of your apps don't show up in the background tasks list unless you go to 'advanced'. Those can activate an agent without your ability to control blocking it from there. You MAY be able to go into that app and turn it off if they have an option, but some don't.
    The agent you mention here that can't be easily blocked are in 3 categories:
    1. Background audio agent(usually used as a hack so you won't get option to turn it off)
    2. GPS background agent(idem)
    3. Resource intensive tasks used only when the device is on power with 90%+ battery to do cloud synchronization
    strikeIII likes this.
    08-20-2013 07:04 PM
  3. NatKingColeslaw's Avatar
    Some great responses so far, thanks. I certainly understand more about things than I did when I first started the thread.
    08-20-2013 07:16 PM
  4. strikeIII's Avatar
    It never about the options. Having all the options in the world resulted in windows being number one target for viruses(users where lame and clinged to the "option" stuff and refused to make limited accounts, all of them were running rampant with admin privileges that windows was paradise for viruses). Users can't make choice without education and they don't care actually because they are lazy and don't really want security. You must push security by force as history showed(UAC from windows Vista that still a lot of users were disabling the features because the security limited their "option" to get infected).

    The new IOS 7 still does not have true multitasking. It's the same hat with different paint on it but as usual the apple did manage to market it as a feature. Android Jelly Bean 4.2.2 lags more than L 1020 (seen it after 1 week of usage by average educated user who installed all the crap in the world).

    MS does listen to customers but again they learned from the past that security must be imposed by force(the UAC example not to mention the way users were using windows xp). Seams that people forget that the last batman game on android has permission to kill all other apps and services just to keep the framerate. This should not be allowed on a device you claim to be secure. People forget that android is the only really personal device you carry everywhere with you that needs an antivirus. People forget the security experiment on android when an app disguise as a game stole and bought on amazon without users knowing. People not living in rusia forget about the real theft of money from users on android devices. People forget that apps like instagram are allowed on android to see what app you are using, what apps you are running and how often you run them.

    Listening is one thing. Allowing users to suppress the concept of security because they are lazy and gaining a reputation of a bad and insecure product mostly because of users is another thing.
    seriously, what are you talking about. We are talking about notifications here. Android lets you control them how you like it, you know it gives me options. iOS 7 lets apps continue to notify and update in real time, I have a dev copy on my iPad. MS sticksyou with crap restricted push notifications. Even the little back door work around don't always work for the devs. Additionally, my response is not a "how I love android" response its just a comparison from my experience. The amount of lag and battery drain is due to the amount of crap you put on your device. My first week with 1020 lagged a bunch cuz I was installing a bunch of to see what was good. Now that I have it the way I want it it runs smooth same for my Android and iOS devices.

    BTW, as I type this response and try to make edits my 1020 using the WP Cenral App starts to lag all over the place. Go figure.
    Last edited by strikeIII; 08-20-2013 at 10:36 PM.
    08-20-2013 10:17 PM
  5. a5cent's Avatar
    seriously, what are you [ChMar] talking about. We are talking about notifications here. Android lets you control them how you like it, you know it gives me options. iOS 7 lets apps continue to notify and update in real time, I have a dev copy on my iPad. MS sticksyou with crap restricted push notifications. Even the little back door work around don't always work for the devs. Additionally, my response is not a "how I love android" response its just a comparison from my experience. The amount of lag and battery drain is due to the amount of crap you put on your device. My first week with 1020 lagged a bunch cuz I was installing a bunch of to see what was good. Now that I have it the way I want it it runs smooth same for my Android and iOS devices
    I suspect you are misunderstanding ChMar. Push Notifications and Background Agents are entirely different and unrelated concepts.

    If everything works as intended, then push notifications arrive as expected within seconds. So if, as you say, we are talking about push notifications, then there is absolutely no value in providing any user configurable options. If you insist, we could invent two options and call them (1) "work as intended" and (2) "act as if broken by delaying", but that is obviously ridiculous.

    I'm not saying that MS' push notification system is 100% bug free and always works perfectly. Unfortunately, there are instances where the system doesn't work. However, this has nothing to do with the restrictions that are being discussed in this thread (30 minute delay etc). Push notifications aren't subject to any such restrictions. Local notifications are subject to some restrictions, but that is another issue entirely.

    The solution here hasn't got anything to do with providing more options. The solution should be to fix the issues that are preventing notifications from being delivered quickly and reliably. I suspect that in most cases (almost all?) it is the apps that are at fault rather than the OS (WhatsApp is the prime example).

    Background Agents do have limitations. However, this isn't an OS limitation per se, but a deliberate design decision that makes it impossible for certain apps (or a combination of certain apps doing arbitrary amounts of background processing) to screw up user's fluid smartphone experience and battery life. MS would say that this is a feature, not a limitation. Carrier support staff would certainly agree, as would I. This is a good thing and should be guaranteed to stay that way. Hence, it also shouldn't be configurable.

    Maybe MS needs to rethink when live tiles are updated? Possibly we should be able to update a live tile through some type of tile interaction, without requiring us to launch the app at all? Maybe live tiles should start updating only after the device is unlocked (show a "refreshing" animation on the affected live tiles) and only while the user is on the start screen? Maybe we should be able to shake our smartphone (or use some other gesture), causing it to update all live tiles? I don't know what the best solution is, but there are certainly many possibilities beyond just letting apps do whatever they want whenever they want.

    Notifications and Background Agents are both related to the topic of live tile updates. In contrast to that, the ability to interact with live tiles in more ways isn't directly related to live tile updates, but I would find it more important right now. For example, I would appreciate the ability to scroll through my list of appointments directly on the large calendar live tile.
    Last edited by a5cent; 08-21-2013 at 12:23 PM. Reason: Spelling
    MikeSo, tk-093, hopmedic and 1 others like this.
    08-21-2013 11:41 AM
  6. Dadstar0410's Avatar
    Maybe live tiles should start updating only after the device is unlocked (show a "refreshing" animation on the affected live tiles) and only while the user is on the start screen? Maybe we should be able to shake our smartphone (or use some other gesture), causing it to update all live tiles? I don't know what the best solution is, but there are certainly many possibilities beyond just letting apps do whatever they want whenever they want.
    Dude! Put this as a suggestion in the Windows Phone Idea blog (I forget what it's called, but it allows you to post ideas for future updates to Windows Phone)
    nitin88 likes this.
    08-21-2013 12:18 PM
  7. MikeSo's Avatar
    In all of these discussions, we have to remember this: when designing Windows Phone, Microsoft has put security first, second, third, and fourth. Fifth comes a smooth, lag-free user experience. EVERYTHING else comes a distant sixth.

    Was this the correct choice? I don't know, but they probably looked at Apple and Android (and Windows Mobile), and made the bet that what the general consumer public wants more than options and freedom is the ease of use and security that iOS provides, rather than the openness and customization of Android. Now, I would argue that iOS is in a position to use this approach because the benefits outweigh the drawbacks, and I'm not sure WP is. But that's the choice Microsoft made, like it or not.

    So when we complain that live tiles can't constantly run code in the background (at least not for every little app there is - as mentioned, there are Microsoft-approved ways of achieving more frequent updating), or that there are no 3rd party browsers or keyboards, we have to accept that this is the price we pay for security and user experience. If we don't want to pay this price, WP is simply not the OS we need - Android is. That doesn't mean that Microsoft won't come up with new implementations of the live tiles that will allow for more functionality, but it does mean that if they do, it will still have to abide by their basic rules, and it won't be just "let apps run as they want in the background".
    08-21-2013 12:25 PM
  8. Lenin17301's Avatar
    I agree that an update every second is silly, but 30 minutes is too much, an app like CNN or Paper Boy should have at maximum a 10-15 minute gap between updates, and Tiles that obtain local data (Calendar, SMS, Battery, etc) should have even less of a gap between updates (5-10 minutes). In fact, lets be honest here, Android sucks b*lls on the reliability front, but the freedom to customize core aspects of the OS is to be commended and even copied to a certain degree, what I'm saying is: if I want to fry my phone's battery and eat away my data plan by having Tiles update themselves every second, I should have that freedom, simple as that.
    08-21-2013 12:46 PM
  9. Boris Lozac's Avatar
    People, i've had Clock widget, weather widget and one time a battery percentage widget on the home page of my ancient Android (HTC Wildfire), and none had any influence on the battery. It lasted me aproximately 3 days.
    So no i won't accept that MS and devs can't make it work like that, all those widgets updated instantly (except weather which was set to one hour refresh), i mean c'mon seriously, i couldn't believe it when i looked through the store that there isn't any big clock tile so i don't have to hurt my eyes looking at that little one in the upper right corner..

    And none of those ever gave me any problems by getting stuck in the background or something..
    08-21-2013 12:58 PM
  10. broar94's Avatar
    Yep time to go back to Android cause that's the one that's gonnna work real time :)
    08-21-2013 01:19 PM
  11. a5cent's Avatar
    what I'm saying is: if I want to fry my phone's battery and eat away my data plan by having Tiles update themselves every second, I should have that freedom, simple as that.
    You belong to a large majority proclaiming consumers should have the right to fry their phone if they so desire. Simultaneously, there also exists a large majority of consumers that will complain, whine and curse at manufacturers and software developers for delivering an OS that isn't 100% deterministic in its behaviour, intuitive and lag free. This is inconsistent and logically flawed behaviour! I'm not saying that you personally are inconsistent, but as a whole, consumers are incredibly so. The saying "with great power comes great responsibility" also applies to computing devices. The thing is, 95% of the population simply doesn't want that responsibility.

    It is simply impossible to have a device that is extremely flexible while also being fool proof. As a result, MS, Apple and Google must decide where their product should lie on the flexibility / reliability+simplicity spectrum. As it is now, Android is on one side, while iOS and WP are on the other.

    I personally do not want a computer in my pocket. I want a 100% reliable device. That is why I would prefer iOS and WP over Android. I'm willing to spend some time maintaining my PC hardware, but I'm not willing to fiddle around with my phone. It just has to work. I do not think WP is there yet. It's still too immature. But it is getting there.

    People, i've had Clock widget, weather widget and one time a battery percentage widget on the home page of my ancient Android (HTC Wildfire), and none had any influence on the battery. It lasted me aproximately 3 days.
    You are missing the point. Obviously, it is possible to provide an API on WP that allows for a continually running and live tile updating clock (without killing the battery). The point is that when you make such an API available to everyone, then it becomes usable by any app, not just clocks. That doesn't mean any app using that API will kill your battery, but it does introduce the possibility for apps to do so. The point is that people using WP shouldn't have to worry about such possibilities. At least that is the stated goal.
    ChMar, svarog84 and hopmedic like this.
    08-21-2013 02:04 PM
  12. thawkth's Avatar
    Look for percentage of android malware on google or bing or whatever. See how you dismiss the UAC :). Everyone does this. Today viruses are not like 1980 viruses that deleted your files or block your computer from running. And seriously look for that article on the security experiment where an malware in disguise was able to buy in user name from amazon. I know it sounds crazy but is all real and I believe that if you spend 10 minutes looking for it you will find all the info you need. The batman and instagram examples are exactly my point on how legit apps (legit meaning apps by big companies) have more power over your device than they should be allowed.

    If you are up for the challenge allow me 3 days to make an android app (game or what you like) and allow me to by myself something from amazon. And I will show you how easy it is to abuse of your money. Or just allow me to post on your facebook account that I own you :)
    Don't be silly, you only get Android viruses by pirating applications.

    Google has done a great job at cleaning up the play store and has some strong checks in place to prevent malware.
    08-21-2013 02:29 PM
  13. Boris Lozac's Avatar
    The point is that people using WP shouldn't have to worry about such possibilities. At least that is the stated goal.
    The point is i've had 3 extreme drainages in like 40 days with that bulletproof restriction.. Before someone else say it's a hardware issue, just don't, look closely on this forum, or the web..
    08-21-2013 02:43 PM
  14. ChMar's Avatar
    Don't be silly, you only get Android viruses by pirating applications.

    Google has done a great job at cleaning up the play store and has some strong checks in place to prevent malware.
    This is popular belief that you get viruses by pirating apps :). It's not so. Google cleaning process and the checks are based on feedback from security companies and the users reporting apps. It's not security it's like a wall with most wanted criminals that already committed crimes not a system that tries to prevent the criminals.

    I can describe to you all how easy is to abuse of your data and steal your money. It's simple and efficient but it's not the topic here.

    The way notifications works now I consider to be a good compromise. Push notifications are small packets of data that do not require multiple http connections or transferring http headers needlessly. In practice I can say now that I'm content(not happy obviously as I consider there are still some points where the system can benefit from adjustments) of how push notifications system works. I get real-time push notifications in whatsapp (most of the time it has some hit and misses) and IM+ works excellent by using those notifications.

    As for CNN updating the live tiles on a 10-15 minutes as I stated it's completely possible. They only need to take advantage of push notifications and not the background agent and they can have live tile updates as frequent as they wish.

    a5cent make some very good points about where the system can be improved. But I don't see how this will work. Allowing apps to update fast when screen is turned on will mean that all apps will abuse this so it's no better than unrestricted background access. But I'm sure something suitable will come around those lines.

    About the abuse the apps do because they can I can tell you that in my country(Balkans) I cannot sell a single app to customers until I make the point that they can steal the user contacts and use them for spam. After I make this point they are all thrilled. The concept of communicating with users from the app does not matter for them their business methods are around 1990 using email spam. All the apps I made for companies in my country are actually disguised malware (it's not like I'm proud or anything but this is the world I live in). They are also thrilled if you let them spam users with emails and push notifications when the users are passing in front of the competition establishments or their establishment with coupons and other advertisement. Also a spam machine and a battery drain. Do users know they are actually installing a malware? Nope. And I believe they don't care either.

    I know many stuff said here deviate from the topic of the live tile notifications. But the issue is about security and conserving the resources of the phone. And I do hope the system remains with those restrictions to prevent abuse. Because there will always be abuse and not from hackers only.
    sueha, a5cent, hopmedic and 1 others like this.
    08-21-2013 02:51 PM
  15. ChMar's Avatar
    The point is i've had 3 extreme drainages in like 40 days with that bulletproof restriction.. Before someone else say it's a hardware issue, just don't, look closely on this forum, or the web..
    It's not bullet proof. It's better than nothing. And it is not mostly OS fault but apps fault. If a server used by some apps goes down you get increased usage of data and so increased battery drain. When you have intermittent data connection you also experience the same increased drain. 3g data usage is more taxing on the battery than Wi-Fi in practice so in an area with fluctuating signal you will get additional connection to the 3g towers and increase battery drain. Now imagine what will happened if the same hardware was not having an OS with some restrictions.

    Some manufacturers are at fault here. HTC 8x uses a 1800 mah battery. This is so low for a phone made as a high end phone. In contrast the Lumia 720 has a 2000mah battery for a middle range phone with cheaper CPU and smaller screen resolution. I can't beat 1 day with my htc phone where people with lumia 720 get 2 days with their phone. In the end I came to the conclusion that I choose the wrong phone for me.
    Boris Lozac likes this.
    08-21-2013 02:57 PM
  16. a5cent's Avatar
    The point is i've had 3 extreme drainages in like 40 days with that bulletproof restriction.. Before someone else say it's a hardware issue, just don't, look closely on this forum, or the web..
    That restriction actually is bullet proof. It is the exceptions to that restriction (like background location, etc) and hacks (like apps misusing the background audio API) that cause the biggest problems. Unfortunately, we also have an OS bug that seems to allow some processes to get stuck while sucking at the battery.

    In a nutshell, it isn't the concepts that are bad. They are great. It is the OS' relative immaturity (and not restricting apps enough, for example by designing an audio API that can be misused) that are the main problems.
    Last edited by a5cent; 08-21-2013 at 03:13 PM.
    hopmedic and Boris Lozac like this.
    08-21-2013 02:59 PM
  17. Boris Lozac's Avatar
    It seems there's still a serious misconception here, no one wants the apps that require internet access to display their info (weather and stuff) to update the tile every second. People don't use that on other systems neither, usually weather widgets are set to refresh every hour, i just want a damn big clock tile that doesn't fetch data through 'servers', what 'servers' does a battery app needs to fetch??
    08-21-2013 06:08 PM
  18. sueha's Avatar
    ChMar, you gave me some really helpful insights! What a nice thread this turned out to be! Thank you!

    P.S.: The easiest way to solve at least one problem would be if Microsoft (and not HTC) made a clock tile app for every WP user. Shouldn't be that much of an effort.
    08-21-2013 06:36 PM
  19. ChMar's Avatar
    ChMar, you gave me some really helpful insights! What a nice thread this turned out to be! Thank you!

    P.S.: The easiest way to solve at least one problem would be if Microsoft (and not HTC) made a clock tile app for every WP user. Shouldn't be that much of an effort.
    That's exactly the solution. This way it is all controlled and 3rd party devs won't get a chance to mess things up.
    08-21-2013 06:56 PM
  20. Boris Lozac's Avatar
    But what can they mess up mate? :) How don't they mess it up on Android with clock/battery widgets? I've never heard one case of one of those apps causing problems..

    Everything is 'offline' for those two things, there's no servers involved.

    Also i couldn't believe that there isn't an "API" yet for flashlight apps to change the brightness (cause i don't have a LED flash and use white screen as a flashlight), it just puts a white image while the brightness remains at low, like my phone is set up.. It's things like this that get me, these 'little' things.
    08-21-2013 06:59 PM
  21. a5cent's Avatar
    a5cent make some very good points about where the system can be improved. But I don't see how this will work. Allowing apps to update fast when screen is turned on will mean that all apps will abuse this so it's no better than unrestricted background access. But I'm sure something suitable will come around those lines.
    Okay, I'm quickly hijacking this thread (just for a post or two) ;-)

    I admit I haven't spent any time trying to think this through, so I wouldn't be surprised if it didn't work. I imagine that the OS would stop running Periodic Agents every thirty minutes, instead opting to do so only when the device is activated. I imagine that the OS wouldn't allow apps to do anything more than what their Periodic Agents do now, and that all the same restrictions would still apply (25 second limit, don't run in battery saver mode, etc.). I also imagine that the OS would setup the sequence of Periodic Agents so as to maximize parallelism, and display "updating" animations on the live tiles while the operation is in progress.

    Where do you see a problem? Not saying this is my preferred solution. Just curious as to what might be considered problematic.
    08-21-2013 07:05 PM
  22. ChMar's Avatar
    As stated by my and a5cent it not like a legit clock widget will screw you in android. But if you give 3rd party the option to unrestricted run code when they want they will abuse it.

    Example:
    1. I'm running android and install a game with come relatively ok gameplay and a better than average graphics. It runs unrestricted it's fun to play. I paid for graphics 200$ on an indian guy on rentacoder or whatever. I don't care about that as I wont update the game ever. It's free and uses fermium model like you give mail and blah blah and it gives you coins. So you know it's free and does this and you accept the permisions about sending mails and receving mails as it's the way my game is monetizing.
    2. My game is not stupid to brick your phone it learns when you sleep. After 1 week it knows you sleep between 1am and 7am your local time. It knows you are an us citizen .
    3. At exactly 5 am my app will send email to amazon paypal whatever that you forgot your username and email. I will use the default email in the phone hopping that you are one of the 90% users that uses their primary mail in the phone to keep all things together.
    4. I read the email with the link for password resetting from your email and create a new password. I now know your username(from the email received) and I also changed your pass.
    5. I delete the email with the link so you won't know what happened.
    6. I go spend your money and you will never know what happened. And users will blame Microsoft because they are sure they got a virus on their computer so someone stole their data:).

    This is what happens when you have options. This is a story about an app that exists it is not invented by me.

    Widget offline exploit:
    1. Once every 5 minutes I get your gps position. And send it along with your email to a server.
    2. I make a deal with the most desperate restaurants to send you emails everytime to pass near them with a 10% happy hour reduction.
    So you loose battery because I go for your gps position you get spam because I give your data to some sellers.
    There are already apps that do that :)

    There are too many ways unrestricted access can cause problems for you. Those I stated are intentional and malevolent. I excluded the cases where a bug will force and app to misbehave and you get a poor performing system. How about the apps that let you change the screen brightness and they have a bug and forget to change it back to your settings when closing? Will you notice it? Will you be pissed of that this happened?
    a5cent and hopmedic like this.
    08-21-2013 07:15 PM
  23. ChMar's Avatar
    Okay, I'm quickly hijacking this thread (just for a post or two) ;-)

    I admit I haven't spent any time trying to think this through, so I wouldn't be surprised if it didn't work. I imagine that the OS would stop running Periodic Agents every thirty minutes, instead opting to do so only when the device is activated. I imagine that the OS wouldn't allow apps to do anything more than what their Periodic Agents do now, and that all the same restrictions would still apply (25 second limit, don't run in battery saver mode, etc.). I also imagine that the OS would setup the sequence of Periodic Agents so as to maximize parallelism, and display "updating" animations on the live tiles while the operation is in progress.

    Where do you see a problem? Not saying this is my preferred solution. Just curious as to what might be considered problematic.
    People will have 10-20 live tiles on home screen. Those 25s are CPU time meaning the time your app(process for the OS) is running. Most network code is not run on the process but on the OS stack so it does not time for the background process CPU time. You get a penalty of 0.2-0.5s per http connection on every connection assuming a good backend server. Since the OS counts your data transfer time as CPU time it will not count those 0.2-0.5s per http connections. So 1 background agent makes 3 http connections(since by definition those are stateless you make a new one each time so you pay the price each time). One for getting users friends, one for getting new pictures from friends, one for getting new likes from friends(this is just an example the real world may work differently). Now also requesting data from a busy server takes time and it's not counted as CPU time for the process. So assuming a response time before you can read data of additional 0.2-0.5s(actually more like at least 0.6s in real life on a moderated accessed server) you will come to the conclusion that the background agent has run additional 0.8s-2s time outside of the 25seconds limit. This is for updating a live tile is not something complicated that will actually double your agent real time usage.

    So it's more fair to say that hard working agents will run more like 40s. This means almost 1 min for a background agent. 15 agents max running you get 10 minutes :). Can't make them parallel this way because every time you open the screen you will have just made yourself spend 10 mins of work whether you like it or not. There will be calls to the kernel so the OS can't enter powersave mode and the network will most likely be on all this time. So you wont get the desired effect(near real-time update on tiles) and you sacrifice the resources. Remember the trigger is starting the screen.

    If you remember a similar method was used in android for when user was having internet access. You could receive an event in code when internet connection was becoming available and you could run your custom code. 2 years ago when not everyone was having unlimited internet and when some firmware were closing Wi-Fi while phone was in standby every time you opened your phone it will lag completely as all your news apps and apps that worked with data over internet were simultaneously working at the same time.

    Honestly I believe un-abused push notifications work bests. I mean the one that you allow the OS to optimize like for weather, news, shopping, etc. Those can be further optimized by OS if you allow for batching so the phone can stay longer in sleep mode and use less battery and resources.
    08-21-2013 07:30 PM
  24. a5cent's Avatar
    ^ Hmm... the individual live tiles on my start screen each update in well under five seconds (on average). I see no reason why that should change just because we choose a different event to trigger the live tile update process (turning on the screen vs. once every 30 minutes). Almost all of the updating time would be spent waiting for server responses, just as Periodic Agents do now. During that time the OS could easily start running the next live tile update. Like I said, I would also assume that all the same restrictions apply, so we'd also be limited to 15 automatically updating tiles. No different from today. But okay, I see that you are concerned with the time it would take to update live tiles. That answers my question. Thank you.
    08-21-2013 09:19 PM
  25. ChMar's Avatar
    You are absolutely right :). A normal live tile that sucks only the live tile info from the webserver will be ready in about 5 seconds. Half the time like when accessing a web server(because of http connection penalty). Now I believe I somehow not provided the best explanation. If you have 10-20 tiles on homescreen(most will surely do). I assume the limit remains at 15 background agents but this limit is a bit misleading. 1 agent can update multiple tiles if secondary tiles are pinned. So lets count those 10-20 tiles on homescreen. Is you want to optimize the algorithm described by me in the previous post for the trigger being the activation of the device you encounter another problem. You must now preload all 10-20 assemblies for the background agent in the memory. So the OS scheduler can run another agent when the former agent thread gets blocked on a file/network operation. Agents are limited to 30mb as opposed to apps that usually are limited to about 150mb. Still this means you get 300-600mb by preloading all the background agents to improve the parallelism. This means at least twice as much as a maximum allowed foreground app. Which means your apps not get tombstoned and you preety much loose all support for fast app switching or anything. Also it means 5112mb devices won't be able to benefit from this optimization because they don't have the memory for it.

    So mainly what I try to say is you don't have the resources for running all agents in parallel. And they will all respond to the trigger and will want to run at the same time. So to optimize the resources(CPU battery and data traffic) you will need to serialize them. Serializing them means that when the number of background agents chained is near maximum and the network connection is poor or agents do image operations(for live tile images for example) you get a peak of resource usage that lasting too long is counter productive.

    You may activate the device and just want to look at bing news. But bing news is the last agent in queue and will actually get updated 3 minutes after you activate the device. This 3 minute delay will completely ruin the idea of real-time. So keeping the info fresh should be done only using push notifications and this way you get near real-time update. For upload cases well the normal usage of agents is enough I believe. For other usage like doing everything in the background I still believe that is enough how the system works right now. Sure if you want fancy live tiles you are stuck with the background agent. Also I believe never ever should an app process images in a background agent to display them on a tile. You have servers for that and they already serve you the image so use them to serve you the right resolution image.
    a5cent, Mahdi Ghiasi and MKairys like this.
    08-21-2013 09:43 PM
67 123

Similar Threads

  1. Lumia 920 won't charge wirelessly after Amber update
    By MarcXW in forum Windows Phones
    Replies: 24
    Last Post: 10-20-2013, 02:35 PM
  2. What ever happened to the Microsoft enthusiast program?
    By lerimer in forum Other Operating Systems
    Replies: 10
    Last Post: 08-21-2013, 08:09 PM
  3. Live Tiles Dead?
    By smontoya2 in forum Windows Phones
    Replies: 4
    Last Post: 08-20-2013, 04:23 PM
LINK TO POST COPIED TO CLIPBOARD