Bundle ID

Hi All.

I would like to fetch the bundle id of my app …

I can see in xcode there are some possibilities to do this …

How would I go about doing it in Corona SDK?

For Android you can use system.getInfo(“androidAppPackageName”) (http://docs.coronalabs.com/api/library/system/getInfo.html).  I don’t think there’s an equivalent API in Corona for iOS.

  • Andrew

Hmm to bad …

Anyone have an idea to verify the bundle ID outside of corona …

I already tried this :

http://support.grouplogic.com/?p=3806

But it seems that my own dev apps are not synched in iTunes and hence the solution above is not an option.

What are you trying to accomplish exactly?

For me, I just set a variable within my code that stores the bundle ID.

  • Andrew

The problem is that I am a “lamo” that does not exactly know what is going on :blink:

I am trying to do facebook integration, an for that I need to specify the bundle ID.

However I am unsure how the bundle ID finally looks as it seems to be a concatenation of my provisional info and the app name or something …

It seems that what I think the bundle ID is, is not true, so I just wanted to check what the bundle ID actually was after a build in Corona SDK…

You create the bundle ID yourself in the iOS Dev Center.  Go to the iOS Dev Center, click on Certificates, Identifiers, and Profiles, then click on Identifiers, and it’ll show you the bundle ID’s of all of the apps you’ve created.  You can make the bundle ID anything you want.  A good practice is com.companyname.appname, but that’s just a suggestion, it’s not automatically created like that as a concatenation of anything.

Note: If you used a so-called wildcard bundle ID, I’d recommend changing to a fully qualified bundle ID.

  • Andrew

Thanks for your swift response!!!

Hmm … Allright…

When I check my profile it is a * ID …

It is displayed somehting like

Foobar(AB1ABCD1AB.*)

In this case I understand my bundle ID would be AB1ABCD1AB.APPNAME

Where APPNAME will be what is specified in Corona build process. or ???

If I make an explicit bundle ID … will all my apps have the same ID or how will this be put together? Do I make one pr. app or ???

For a wildcard bundle ID, I don’t think the * gets replaced by your app name.  I think it’s * always.  I’d suggest not using a wildcard bundle ID, and instead create a fully qualified bundle ID for each of your apps.

Not all of your apps will have the same ID.  You create bundle IDs and provisioning profiles for each of your apps .  When you build in Corona, you specify which provisioning profile you want to use, which implies the bundle ID.  You can and should also specify the bundle ID within build.settings using the CFBundleIdentifier key, which must much the bundle ID of the provisioning profile you’re building with.

  • Andrew

Thanks Andrew! You lifted me from lamo to enlightened lamo :slight_smile:

For Android you can use system.getInfo(“androidAppPackageName”) (http://docs.coronalabs.com/api/library/system/getInfo.html).  I don’t think there’s an equivalent API in Corona for iOS.

  • Andrew

Hmm to bad …

Anyone have an idea to verify the bundle ID outside of corona …

I already tried this :

http://support.grouplogic.com/?p=3806

But it seems that my own dev apps are not synched in iTunes and hence the solution above is not an option.

What are you trying to accomplish exactly?

For me, I just set a variable within my code that stores the bundle ID.

  • Andrew

The problem is that I am a “lamo” that does not exactly know what is going on :blink:

I am trying to do facebook integration, an for that I need to specify the bundle ID.

However I am unsure how the bundle ID finally looks as it seems to be a concatenation of my provisional info and the app name or something …

It seems that what I think the bundle ID is, is not true, so I just wanted to check what the bundle ID actually was after a build in Corona SDK…

You create the bundle ID yourself in the iOS Dev Center.  Go to the iOS Dev Center, click on Certificates, Identifiers, and Profiles, then click on Identifiers, and it’ll show you the bundle ID’s of all of the apps you’ve created.  You can make the bundle ID anything you want.  A good practice is com.companyname.appname, but that’s just a suggestion, it’s not automatically created like that as a concatenation of anything.

Note: If you used a so-called wildcard bundle ID, I’d recommend changing to a fully qualified bundle ID.

  • Andrew

Thanks for your swift response!!!

Hmm … Allright…

When I check my profile it is a * ID …

It is displayed somehting like

Foobar(AB1ABCD1AB.*)

In this case I understand my bundle ID would be AB1ABCD1AB.APPNAME

Where APPNAME will be what is specified in Corona build process. or ???

If I make an explicit bundle ID … will all my apps have the same ID or how will this be put together? Do I make one pr. app or ???

For a wildcard bundle ID, I don’t think the * gets replaced by your app name.  I think it’s * always.  I’d suggest not using a wildcard bundle ID, and instead create a fully qualified bundle ID for each of your apps.

Not all of your apps will have the same ID.  You create bundle IDs and provisioning profiles for each of your apps .  When you build in Corona, you specify which provisioning profile you want to use, which implies the bundle ID.  You can and should also specify the bundle ID within build.settings using the CFBundleIdentifier key, which must much the bundle ID of the provisioning profile you’re building with.

  • Andrew

Thanks Andrew! You lifted me from lamo to enlightened lamo :slight_smile: