Skip to main content
Inspiring
December 9, 2018
Question

send and receive data between AirforIOS and htmlpage.

  • December 9, 2018
  • 1 reply
  • 658 views

Dear Friends,

iam creating an app using AirforIOS, in this I can open a webpage (html) using navigateToURL. I want to track whether user finished reading the page by clicking on a finished button. For that I need to send datas (pagename, name of the user, no of pages finished) back to my same AIR ( my app).

please help me to do this dear... how can I send datas to AS3 or AIR from HTML page or javascript.

Thanks and Regards,

Syed Abdul Rahim

This topic has been closed for replies.

1 reply

Participating Frequently
December 18, 2018

Don't know if this would work for IOS, I have used successfully with Windows

In the calling application set up a localConnection before calling your html process

create a flex(flash) web application that packages up the URLVars and passes them to the localCollection

on completion of your html process call the above page with your URLVars , it will pass on the data to Adobe Air, decode and use.

Inspiring
December 18, 2018

It's likely that this web flash/flex app will be blocked by default by the browser especially when opening within a htmlviewer in Ios. The best solution is a webservice or rest api.

Participating Frequently
December 18, 2018

It is likely that web flash/flex app will be blocked by default unless the environment is a controlled one (internal to an organisation)

Its unlikely that the webservice/rest api is an option as the html process has been launched in an external web browser (navigateToURL) and will not have to capability to communicate that it has finished.

Its not perfect but works(at least until 2020)

If htmlviewer components were better such that they could display modern web pages that would be a better solution.