iOS using swf loader

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

iOS using swf loader

0xC3
I have a question about Flex apps with iOS. We have a Flex browser app that
was started years ago to interface with a device we ship to customers. The
device ships with a webserver to interface with. To help mitigate the 2020
problem and use mobile devices we built an app to load the browser swf using
SwfLoader to display and use the app. The loaded swf connects to the web
services, and seems fine on windows desktops and android.

We have customers that would like to use an iOS version of this. We are not
a mac shop and have no experience with iOS. I know there are issues with iOS
loading remote apps, so before we invest in hardware to test and start down
this road I would like to ask if anybody has experience with something
similar.

1. Can SwfLoader be used on iOS?
2. Will an iOS app be allowed to connect to web services of an arbitrary
device IP(unknown IP address until it's shipped to the customer)? Multiple
arbitrary device IP's?
3. Is non ssl connections ok on internal networks?
4. What about UDP are there any limitation there (there are some remote
commands using UDP as well)?

Thanks to everybody in advance.




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

Re: iOS using swf loader

Hans Nuecke
Interesting question, and I'm interested in answers also.
I tested on my old iPad a while ago but due to low interest (at that
time; 2...3 years ago) and the Apple specific hurdles (you'll have a lot
of fun when you start that road) I postponed my attempts. But times seem
to become hotter for a new approach.

What I found out:
It is (or at least was at that time) impossible to load SWF files with
active content over the internet. Were even a "Stop()" was treated as
active content, i.e. a single frame a image ("page") was not accepted if
that commend was inserted. I could overcome that in modifying the
pdfToSwf converter (stripped of some lines that included exactly that
command). So this is something you better check right at the beginning
of your work!

1) Besides that I could use swfLoader; to answer your first question...

2) On your second question: Besides the potential problems with SWF
files I could load from arbitrary servers.

3.) Not sure I can answer that; also depends on your use case. If you
intend using Browsers for use on your internal network. I would be
careful, since Browsers tend more and more to build hurdles for non sll
pages.

4) I cannot answer since I never used UDP. But imO it should be
possible, worst case in using sockets

Just my 2 cents ;-)
Regards and good luck
Hans

Am 12.10.2017 um 15:32 schrieb 0xC3:

> I have a question about Flex apps with iOS. We have a Flex browser app that
> was started years ago to interface with a device we ship to customers. The
> device ships with a webserver to interface with. To help mitigate the 2020
> problem and use mobile devices we built an app to load the browser swf using
> SwfLoader to display and use the app. The loaded swf connects to the web
> services, and seems fine on windows desktops and android.
>
> We have customers that would like to use an iOS version of this. We are not
> a mac shop and have no experience with iOS. I know there are issues with iOS
> loading remote apps, so before we invest in hardware to test and start down
> this road I would like to ask if anybody has experience with something
> similar.
>
> 1. Can SwfLoader be used on iOS?
> 2. Will an iOS app be allowed to connect to web services of an arbitrary
> device IP(unknown IP address until it's shipped to the customer)? Multiple
> arbitrary device IP's?
> 3. Is non ssl connections ok on internal networks?
> 4. What about UDP are there any limitation there (there are some remote
> commands using UDP as well)?
>
> Thanks to everybody in advance.
>
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/

--
Reply | Threaded
Open this post in threaded view
|

Re: iOS using swf loader

0xC3
Thanks Hans.
The remote loading of the swf file is not our ultimate goal, more of just an
interm work around until everything is rebuilt for AIR and sockets.

We have to use UDP for compatibility to other manufacture devices, so our
thought is to drop the browser and web services just connect straight to the
device with the same UDP connection, but the port will take awhile and you
know how it is everybody wants something now.

I guess as long as I can specify the IP address at runtime and connect to
the background services, porting the Flex portion to AIR should be
relatively painless.



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

Re: iOS using swf loader

Alex Harui-2
I think this is the latest doc:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e
13.html#WS2f73111e7a180bd0-3db1ea4613c45877121-8000

I have not worked with IOS mobile SWFs, but this implies that you can load
a SWF file if you don't make it "remote" and instead place it in the
application packaging folders before packaging.

HTH,
-Alex

On 10/12/17, 7:39 AM, "0xC3" <[hidden email]> wrote:

>Thanks Hans.
>The remote loading of the swf file is not our ultimate goal, more of just
>an
>interm work around until everything is rebuilt for AIR and sockets.
>
>We have to use UDP for compatibility to other manufacture devices, so our
>thought is to drop the browser and web services just connect straight to
>the
>device with the same UDP connection, but the port will take awhile and you
>know how it is everybody wants something now.
>
>I guess as long as I can specify the IP address at runtime and connect to
>the background services, porting the Flex portion to AIR should be
>relatively painless.
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7C2e017b81c1c3413da09608d
>5117f0024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636434159519359803&
>sdata=VtllcrShAIqp4MDLXnNWepN%2ByQk1acWm4g6OYKM%2BUSo%3D&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: iOS using swf loader

Hans Nuecke
Yes, as long as the SWF files are within the sandbox, they will work!

Only if loaded from external resources it becomes difficult...

Hans


Am 12.10.2017 um 18:04 schrieb Alex Harui:

> I think this is the latest doc:
>
> http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e
> 13.html#WS2f73111e7a180bd0-3db1ea4613c45877121-8000
>
> I have not worked with IOS mobile SWFs, but this implies that you can load
> a SWF file if you don't make it "remote" and instead place it in the
> application packaging folders before packaging.
>
> HTH,
> -Alex
>
> On 10/12/17, 7:39 AM, "0xC3" <[hidden email]> wrote:
>
>> Thanks Hans.
>> The remote loading of the swf file is not our ultimate goal, more of just
>> an
>> interm work around until everything is rebuilt for AIR and sockets.
>>
>> We have to use UDP for compatibility to other manufacture devices, so our
>> thought is to drop the browser and web services just connect straight to
>> the
>> device with the same UDP connection, but the port will take awhile and you
>> know how it is everybody wants something now.
>>
>> I guess as long as I can specify the IP address at runtime and connect to
>> the background services, porting the Flex portion to AIR should be
>> relatively painless.
>>
>>
>>
>> --
>> Sent from:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>> x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7C2e017b81c1c3413da09608d
>> 5117f0024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636434159519359803&
>> sdata=VtllcrShAIqp4MDLXnNWepN%2ByQk1acWm4g6OYKM%2BUSo%3D&reserved=0

--

___________________________________________________________________

*Hans J. Nuecke* / Gorch-Fock-Str. 6 • 81827 Muenchen • Germany /
*VservU GmbH*
Home:                           +49 (89) 45344858              office:           +49 (89) 43906 707
mobile:                        +49 (176) 56529048
private: [hidden email]
<mailto:[hidden email]>                 business: [hidden email]
<mailto:[hidden email]>
website: www.vservu.de <http://vservu.de> www.megazine3.de
<http://megazine3.de>
Munich HRB 181251    Geschäftsführer:      Hans J. Nücke      USt-Id:   DE266694113
___________________________________________________________________

Reply | Threaded
Open this post in threaded view
|

Re: iOS using swf loader

OmPrakash Muppirala
In reply to this post by 0xC3
My responses inline:

On Thu, Oct 12, 2017 at 6:32 AM, 0xC3 <[hidden email]> wrote:

> I have a question about Flex apps with iOS. We have a Flex browser app that
> was started years ago to interface with a device we ship to customers. The
> device ships with a webserver to interface with. To help mitigate the 2020
> problem and use mobile devices we built an app to load the browser swf
> using
> SwfLoader to display and use the app. The loaded swf connects to the web
> services, and seems fine on windows desktops and android.
>
> We have customers that would like to use an iOS version of this. We are not
> a mac shop and have no experience with iOS. I know there are issues with
> iOS
> loading remote apps, so before we invest in hardware to test and start down
> this road I would like to ask if anybody has experience with something
> similar.
>
> 1. Can SwfLoader be used on iOS?
>

If your swf contains code (and not just assets) it will throw errors.  An
alternative approach would be to simply create a mobile Flex project and
import all that code and compile it as a pure iOS app.
You could move all the application logic into a Flex Library project and
build shell applications that load a component (during compile time)  This
approach lets you share code between web, desktop, ios and android
platforms.
Here is a slightly related example:
https://github.com/bigosmallm/TwitterTrends


> 2. Will an iOS app be allowed to connect to web services of an arbitrary
> device IP(unknown IP address until it's shipped to the customer)? Multiple
> arbitrary device IP's?
>

By default no.  But you can make changes to the Info.plist files (via the
air-descriptor.xml) to fix this problem
More details: https://forums.adobe.com/thread/2036070


> 3. Is non ssl connections ok on internal networks?
>

Same as above.


> 4. What about UDP are there any limitation there (there are some remote
> commands using UDP as well)?
>

I believe UDP should work the same way, i.e. without any problems.


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

Re: iOS using swf loader

0xC3
Thanks everybody.
Since remote loading is not going to work, I am going to port the app to
AIR. The only reason to try and use SwfLoader was to delay the eventual
porting of the existing browser app. I am doing the shared code on a
different app and it works great.

I have no real need for the browser, it was just a convenient way of
accessing the information at the time (several years ago), but times are
moving on. Reusing the services is very helpful.

BTW Thanks to everyone, I think Flex is great and AIR does a fantastic job
of moving platforms. So far my only limitation right now is iOS
restrictions.



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