开发者

iPhone: When should the network activity indicator be used

I have just started including networking functionality into my apps. I know that you should use the network activity indicator when the user is actively waiting for something, but what about if it was just a subtle background communication wi开发者_如何学Goth the server (in my case, just to update a value) - is it still good practice to let the user know that your app is connecting to the internet?

This is something I find interesting about the iOS platform - that it lets its developers tell the users whether or not the internet is being used.

UPDATE: In this specific case I'm downloading a text file which is 4 chars long!!


As usual a look into the HIG and the documentation is useful.

This is what apple says about the network activity indicator.

Guidelines

Display the network activity indicator to provide feedback when your application accesses the network for more than a couple of seconds. If the operation finishes sooner than that, you don’t have to show the network activity indicator, because the indicator would be likely to disappear before users notice its presence.


Apple's own iWork apps don't use the network activity indicator, even though they are constantly uploading the changes to the server.

I think that if the user is clearly aware that the app accesses the internet (i.e. they explicitly allowed it), there is no need to show the indicator for every small network operation. It is intended for indicating that a larger amount (>100kb) of data is being uploaded/downloaded, and keeping the user informed, that the app is still working.

If you just think of iCloud as an example, I think it would be very annoying to continuously see the network activity indicator spinning.


It is obviously good practice to let the user know when they are using the internet as such activities involve the use of money. Its more of an ethics thing than convention.


You should always let the user know if anything is going on.

Just for the sake of letting the waiting time appear shorter than it actually is.

And it just looks nice.


The HIGs state the following:

When appropriate, display the network activity indicator. The network activity indicator can appear in the status bar to show users that lengthy network access is occurring. To learn how to implement this indicator in your code, see “Network Activity Indicator.”

And

Display the network activity indicator to provide feedback when your application accesses the network for more than a couple of seconds. If the operation finishes sooner than that, you don’t have to show the network activity indicator, because the indicator would be likely to disappear before users notice its presence.

I would probably not show the activity indicator, because it is no "lengthy" network access.

Apple Documentation


I would always show the user the internet or connection activity. As stated before you have to keep in mind that data plans do cost money. And have a connection means consuming exactly that money. The activity symbol is no big deal and it even does not disturb the interaction of the app. So there is no reason why NOT to use the activity indicator.


You should always show the network activity indicator whenever the internet is been accessed. Your app's users should always be indicated if the app is currently using their internet connection. Man! Don't cheat your beloved customers. Its a sin. May God bless you! ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜