views:

1729

answers:

2

It seems like Info.plist file has an ability to declare different roles for the same application bundle through the UIRoleInfo key. SpringBoard can recognize these roles after installing an app and may display separate icons for each application role.

For instance, iPhone shows MobileSlideShow.app as 2 different programs: Photos and Camera.

Unfortunately, there is no official Apple documentation about the subject at the moment. Would anybody advise how to organize the same behavior in a custom app?

This feature is going to be used in the Enterprise product for ad hoc distribution.

+1  A: 

This isn't a supported feature, so if you do this you might have a hard time getting your app through the approval process. I wouldn't recommend using it.

Eric Albert
Thanks Eric! It's very useful information. What about the case when this feature is going to be used in Enterprise app? Just added this explanation to the description.
Stream
If you use this in ad hoc distribution, it might work, but because it isn't supported Apple could break your app at any time by changing how this works. That's a choice you can make, of course; it's just a bit risky.
Eric Albert
A: 

Have you tried it to see if it works? If it doesn't work, you could create a second app that does nothing but launch the first one, with a custom URL scheme. The first app can recognize when it is being launched with that URL. This is not ideal as you will see the second app launch & quit (though it should be really fast).

Chris Lundie
The main goal to be reached is to share the same data and user defaults. So this solution is not a case.
Stream