Skip to main content
Participant
November 25, 2013
Question

Air native extensions, includes plist?

  • November 25, 2013
  • 1 reply
  • 1710 views

I am currently building an ANE for using the External Accessory framework from AIR in order to access and external Bluetooth device. I wrote an xcode library and compiled the ANE which in a sense works quite ok, all logic etc of my classes and methods seem to work. But the only problem is that it somehow does not seem to include my info.plist file which contains the crucial Supported External Accessories property. I figured that out by including the ane in my AIR file and running the xcode organiser to monitor the warning and errors. The error I got was rather clear:

     ERROR - opening session failed as protocol [I deleted the protocol name for my organisation's sake] is not declared in Info.plist

My question is whether it is possible and if so how, to include the plist into my ANE. I now edited the plist file manually (it also does not show in the xcode project) so it might very well be that the problem is in that. But it would be nice for me to know what it is I am doing wrong and what I could try to change it!

Any help is appreciated!

-- My issue on stackoverflow --

http://stackoverflow.com/questions/20194109/including-info-plist-ios-when-exporting-to-air-native-extensions

This topic has been closed for replies.

1 reply

Participant
November 27, 2013

Managed to implement this, very nice. Now I have another issue, maybe you are familiar with it? My challenge is that the session is not maintained when the app goes to background. Flow: -connect BT (ok), - send command to BT device (ok), -click app to background (ok), -restore app (session closed), no more working BT communication

Do you have a good solution?