Reputation: 4547
I need to find the publisherID of my native AIR application so I can use the browser invocation feature.
I have a working AIR Native Application Installer project (.exe) built with FlashBuilder 4.5 as a "signed native installer" using a self-signed certificate.
But I look in the install folder and cannot find the file 'META-INF/AIR/publisherid'. Also, I tried logging 'NativeApplication.nativeApplication.publisherID', but it shows as an empty string.
How do I get a publisherID?
Upvotes: 1
Views: 2663
Reputation: 5308
You can invoke an AIR application using the described API even if the publisherID is missing. Just leave it blank, like that:
airSWF.launchApplication(appID, "", arguments);
Upvotes: 2
Reputation: 17237
publisherID
is legacy. it's no longer used but continues to be supported for AIR applications compiled with AIR 1.5.2 and earlier.
AIR application descriptor elements: publisherID
you should refer to values in your descriptor file instead. for example, this is how you can obtain the version of your application based on that tag's value in the XML descriptor file:
var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = descriptorFile.namespace();
trace("Version " + descriptor.ns::versionNumber);
Upvotes: 1