-
1. Re: Air native extensions, includes plist?
flexercised Nov 25, 2013 10:16 AM (in response to ThijsInteractionDesign)I think you would need to do this in the Air app not within the extension. In the app xml file add this:
<iPhone>
<InfoAdditions>
<![CDATA[
<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string> ... </string>
</array>
]]>
</InfoAdditions>
<requestedDisplayResolution>standard</requestedDisplayResolution>
</iPhone>
Fill in the array section.
-
2. Re: Air native extensions, includes plist?
ThijsInteractionDesign Nov 27, 2013 4:04 AM (in response to flexercised)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?
-
3. Re: Air native extensions, includes plist?
flexercised Nov 27, 2013 10:15 AM (in response to ThijsInteractionDesign)You probably need to add this to the info.plist:
<key>UIBackgroundModes</key>
<array>
<string>bluetooth-central</string>
</array>
which means you add it between the <![CDATA[ and ]]> in the Air app xml like before.

