Issue with Flex 4.16.1 and Harman AIR 33.1

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with Flex 4.16.1 and Harman AIR 33.1

After24
Hello,

In the process of updating an Android app for the Google play store using
the latest Harman AIR 33 SDK, I'm facing an issue regarding remote calls
with AMFPHP.

I'm using the latest FLEX SDK binaries (4.16.1) overlayed with Harman's AIR
SDK 33.1.300 .

When executing (from Intellij) in debug mode using ADL, each AMF call fails
with the following error : Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed: url:'https://....'

But when compiling in debug mode directly on an android device, the AMF
calls doesn't fail.

Anyone encounter similar issues ?

Thanks.

Vincent.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

leokan23
Check if it works with http instead of https. I remember flex / air /
whatever having issues with https links



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

After24
Hi Leokan,

I had already tried using both http and https with no luck.

I managed to get ADL working by replacing the bin folder of the SDK (AIR 33)
with the one of my SDK AIR (31).

This is at best very sketchy fix that could potentially cause other
problems.

I would like to understand if this is an AIR 33 SDK issue, a FLEX SDK issue
with AIR 33 SDK or if (more probably) the problem is related to the way I
generate the SDK.

My procedure on MAC OS 10.12 is as follows :

1 - Downloading the FLEX SDK 4.16.1 binaries from the apache flex  website
<http://flex.apache.org/download-binaries.html>  

2 - Downloading the non-included dependencies using the Ant command 'ant
thirdparty-downloads' indise the frameworks folder of the SDK

3 - Downloading the Harman AIR SDK for Flex Developers from Harman
dedicated website <https://airsdk.harman.com/download>  .

4 - Unziping the downloaded SDK and generate a .dmg from it using the disk
utility tool (unlike Adobe which provides the AIR SDK as a .dmg file for
MacOS, the Harman SDK is provided as a .zip)  

5 - Overlaying the FLEX SDK using the procedure  described by Adobe
<https://helpx.adobe.com/uk/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html>  


Has anyone else on the list generated a Flex SDK with AIR 33 ? Have you
encountered problems doing so ?

 






--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

After24
In reply to this post by leokan23
Hi Leokan,

I had already tried using both http and https with no luck.

I managed to get ADL working by replacing the bin folder of the SDK (AIR 33)
with the one of my SDK AIR (31).

This is at best very sketchy fix that could potentially cause other
problems.

I would like to understand if this is an AIR 33 SDK issue, a FLEX SDK issue
with AIR 33 SDK or if (more probably) the problem is related to the way I
generate the SDK.

My procedure on MAC OS 10.12 is as follows :

1 - Downloading the FLEX SDK 4.16.1 binaries from the apache flex website

2 - Downloading the non-included dependencies using the Ant command 'ant
thirdparty-downloads' indise the frameworks folder of the SDK

3 - Downloading the Harman AIR SDK for Flex Developers from Harman dedicated
website.

4 - Unziping the downloaded SDK and generate a .dmg from it using the disk
utility tool (unlike Adobe which provides the AIR SDK as a .dmg file for
MacOS, the Harman SDK is provided as a .zip)  

5 - Overlaying the FLEX SDK using the procedure described by Adobe


Has anyone else on the list generated a Flex SDK with AIR 33 ? Have you
encountered problems doing so ?



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

Frost, Andrew-2
In reply to this post by After24
Hi

If this is on MacOS and something fails with AIR 33 but works if you change just the 'bin' folder from AIR 31 .. then I would suspect it's an entitlements problem. ADL itself (the binary there) doesn't change much, so if that's all that was adjusted, it means we're likely hitting a problem caused by the fact that this is code-signed; maybe something is then being loaded that's not permitted by the entitlements that we signed ADL with... (although, normal http/https connections should all be fine!)

If you try again with the 'bin' folder from AIR SDK 33, are you able to then take the 'adl' file from that folder and remove the code-signing on it?
codesign --remove-signature [SDK_Folder]/bin/adl

thanks


-----Original Message-----
From: After24 <[hidden email]>
Sent: 12 November 2020 14:20
To: [hidden email]
Subject: [EXTERNAL] Re: Issue with Flex 4.16.1 and Harman AIR 33.1

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender. Please report any suspicious content by using the "Report Email" tool.




Hi Leokan,

I had already tried using both http and https with no luck.

I managed to get ADL working by replacing the bin folder of the SDK (AIR 33) with the one of my SDK AIR (31).

This is at best very sketchy fix that could potentially cause other problems.

I would like to understand if this is an AIR 33 SDK issue, a FLEX SDK issue with AIR 33 SDK or if (more probably) the problem is related to the way I generate the SDK.

My procedure on MAC OS 10.12 is as follows :

1 - Downloading the FLEX SDK 4.16.1 binaries from the apache flex website

2 - Downloading the non-included dependencies using the Ant command 'ant thirdparty-downloads' indise the frameworks folder of the SDK

3 - Downloading the Harman AIR SDK for Flex Developers from Harman dedicated website.

4 - Unziping the downloaded SDK and generate a .dmg from it using the disk utility tool (unlike Adobe which provides the AIR SDK as a .dmg file for MacOS, the Harman SDK is provided as a .zip)

5 - Overlaying the FLEX SDK using the procedure described by Adobe


Has anyone else on the list generated a Flex SDK with AIR 33 ? Have you encountered problems doing so ?



--
Sent from: https://clicktime.symantec.com/3ShbuuMaoqH713LMcA29GZW7Vc?u=http%3A%2F%2Fapache-flex-users.2333346.n4.nabble.com%2F
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

pol2095
This post was updated on .
In reply to this post by After24
i added a little tutorial  here



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

After24
In reply to this post by Frost, Andrew-2
Hi Andrew,

Thank you for your answer, very cool to know your are monitoring this list.
Just tried to remove the code signing on adl but it doesn't solve the issue.

This problem seems to be related to the absence of the /bin/Contents/ folder
in the AIR 33 SDK : pasting the Contents folder (copied from another AIR
SDK) into the bin folder solves the issue.

If I understand correctly, the Info.plist property file within the Contents
folder expose the required key :

/<key>NSAppTransportSecurity</key>
        <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    </dict>/
 
Vincent.









--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

Frost, Andrew-2
In reply to this post by After24
Hi

Full disclosure -> I have a filter so I only get to see emails that mention 'Harman'...

Thanks for the hint re. the Contents folder; this was removed because it caused a problem for code signing! But we can look again at this to ensure we get ADL set up properly. In the meantime - yes there's no real difference in this, it's the runtime that it loads where all the actual AIR functionality sits..

thanks

   Andrew

-----Original Message-----
From: After24 <[hidden email]>
Sent: 12 November 2020 18:21
To: [hidden email]
Subject: [EXTERNAL] Re: Issue with Flex 4.16.1 and Harman AIR 33.1

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender. Please report any suspicious content by using the "Report Email" tool.




Hi Andrew,

Thank you for your answer, very cool to know your are monitoring this list.
Just tried to remove the code signing on adl but it doesn't solve the issue.

This problem seems to be related to the absence of the /bin/Contents/ folder in the AIR 33 SDK : pasting the Contents folder (copied from another AIR
SDK) into the bin folder solves the issue.

If I understand correctly, the Info.plist property file within the Contents folder expose the required key :

/<key>NSAppTransportSecurity</key>
        <dict>
                <key>NSAllowsArbitraryLoads</key>
                <true/>
        </dict>/

Vincent.



Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

After24
Hi Andrew,

Thank you for your response, ok for the "Harman tag"  filter.
Yes, it would be nice if you could fix this adl issue on MacOS on a future
AIR version as I'm probably not the only one who have faced this problem.

Vincent.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Flex 4.16.1 and Harman AIR 33.1

After24
In reply to this post by pol2095
Hi Pol2095,

Thank you for the tutorial link.

Vincent.




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/