Live data from Hacker News

Customize iOS7 App Switcher with custom card view

github.com

11–20 of 28 posts

Re: Customize iOS7 App Switcher with custom card view

#11
post #7

Maybe I'm too pessimistic, but I expected the example to be just the app's logo. Ie: oh, that's my Dropbox app because instead of the Dropbox UI, I see the big Dropbox logo (Nothing against Dropbox or their app). I also wonder if we'll ever see the app switcher card being used as advertisement space. A little less cynically: If you can redesign a screen in the app to remove clutter and highlight the important informa…

>> "If you can redesign a screen in the app to remove clutter and highlight the important information"

It's not that simple. The problem isn't information density/clutter. When in task switching mode the screen is very small so just being able to make the most important information larger so it's easier to read is useful. Also, there may be buttons on screen that may be important features - but they aren't important in task switch mode as they can't be pressed so removing them and making more room for the content makes sense.

It's like designing for a small screen device and a larger screen device. You can make useful features easier to access on the larger screen due to the extra real estate. That doesn't necessarily mean you're cluttering the UI.

Re: Customize iOS7 App Switcher with custom card view

#12
post #8

I'll wager Apple will shut this down or reject apps that do this. If you're going to do this you have to consider the ramifications of how stale the information on the card becomes over time. The example, showing a "Checked in since..." will become stale if someone checks in/out on another device. A real iOS 7 API to update these cards in the background would be a nice addition.

I saw this in the WWDC videos from this year, Apple provides this functionality.

Re: Customize iOS7 App Switcher with custom card view

#13
post #5

Interesting stuff, surprised the built-in apps don't do something similar to this. As an aside, is there anything similar to this for android? I've tried a fair bit of googling but can't find anything or the right search term.

There is a method `onCreateThumbnail()`[1] that is supposed to allow you to do this, but it doesn't appear to work (reported bugs in 4.0-4.2). The best you can get at the moment is to blank out the thumbnail[2] (for security reasons) or opt out of being shown in the list [3].

[1]: http://developer.android.com/reference/android/app/Activity....

[2]: http://commonsware.com/blog/2012/01/16/secure-against-screen...

[3]: Use android:excludeFromRecents="true"

Re: Customize iOS7 App Switcher with custom card view

#14
post #10
post #8

I'll wager Apple will shut this down or reject apps that do this. If you're going to do this you have to consider the ramifications of how stale the information on the card becomes over time. The example, showing a "Checked in since..." will become stale if someone checks in/out on another device. A real iOS 7 API to update these cards in the background would be a nice addition.

The cards are already showing stale information, including Apple's own apps: http://d.pr/v/NuY5 . As for background updates, there are some ways around through iOS7 background modes, but the situation could certainly be improved. I agree there should be an Apple provided "AppSwitcher Kit" framework.

Right now though, I have this intuitive belief that when I close an app, it "pauses" and the card I'm seeing is a frozen state of what the screen looked like when I hit the home button.

I don't know if that's how other people perceive it, but it does feel extra-wrong when you hack it to try to convey timely information in the switcher.

Re: Customize iOS7 App Switcher with custom card view

#15
post #9
post #8

I'll wager Apple will shut this down or reject apps that do this. If you're going to do this you have to consider the ramifications of how stale the information on the card becomes over time. The example, showing a "Checked in since..." will become stale if someone checks in/out on another device. A real iOS 7 API to update these cards in the background would be a nice addition.

The only legitimate use case to me seems not displaying possibly sensitive information.

That's a very big and sufficient use case, significant enough to warrant making this "concealment card" the norm unless there is a reason not to. Not the kind of thing you want a customer realizing after the fact.

Re: Customize iOS7 App Switcher with custom card view

#16
post #9

Earlier quoted context omitted.

The only legitimate use case to me seems not displaying possibly sensitive information.

That's a very big and sufficient use case, significant enough to warrant making this "concealment card" the norm unless there is a reason not to. Not the kind of thing you want a customer realizing after the fact.

I think you lose a lot of context. The screen shots help you remember what you're doing. In most cases, I would rather see the last state my app was in.

Re: Customize iOS7 App Switcher with custom card view

#17
post #6
post #2

It looks like the trick here is to hook into a global NSNotification called "UIApplicationWillBeginSuspendAnimationNotification", which is assumed to be "app will enter background", and then throw up a fullscreen UIView on top of everything. I think this is an undocumented notification, so it's possible other iOS versions will break this feature.

I can't find it at the moment, but I think there is a supported way to achieve the same thing. I remember it being mentioned at WWDC to allow apps to hide sensitive data in the UI before the screenshot for the app switcher is taken.

Yes I remember that as well, all you have to do is set the UI you want to be screenshotted in the applicationWillEnterBackground notification/application delegate callback. This has been around since fast app switching (iOS 2.3 I think, the golden old days :)) but has gotten much more prominent with the new app switcher.

Re: Customize iOS7 App Switcher with custom card view

#18
post #7

Maybe I'm too pessimistic, but I expected the example to be just the app's logo. Ie: oh, that's my Dropbox app because instead of the Dropbox UI, I see the big Dropbox logo (Nothing against Dropbox or their app). I also wonder if we'll ever see the app switcher card being used as advertisement space. A little less cynically: If you can redesign a screen in the app to remove clutter and highlight the important informa…

The switcher view is a) purely read-only, b) scaled down in size from the normal view. I think it makes sense for info to be presented differently in this case. When you make an icon smaller, you don't just take the existing design and scale it down. You also remove detail you can't afford to try to make the design clearer overall.

Re: Customize iOS7 App Switcher with custom card view

#19
post #16

Earlier quoted context omitted.

That's a very big and sufficient use case, significant enough to warrant making this "concealment card" the norm unless there is a reason not to. Not the kind of thing you want a customer realizing after the fact.

I think you lose a lot of context. The screen shots help you remember what you're doing. In most cases, I would rather see the last state my app was in.

You're missing the point. Several, actually. Sometimes screenshots are not acceptable - such as when they show Social Security Numbers, bank account numbers and contents, or NSFW stuff (imagine switching when AirPlay-projecting for a group during a meeting). Sometimes screenshots hang on for a long time in the switcher - the session may have expired, but the thumbnail is still there days later, showing wrong context. Sometimes the snapshot is just plain unreadable because it's scaled down, making it unusable even if you want to see it. The whole point of the parent's source code IS to provide app state info WITHOUT just snapshotting the screen or showing a bland logo.
Post reply on HN