Skip to main content
Participant
July 29, 2011
Question

BROWSER_INVOKE Event Never Fired

  • July 29, 2011
  • 1 reply
  • 316 views

I am trying to get the BROWSER_INVOKE event to fire in my air application.  I have followed the instruction on the adobe site and use the example install app badge code.  However the event never get fired.  I was wondering if it is because the example app uses the installApplication as opposed to launchApplication api.   If so is there a way to install then use launchApplication so the BROWSER_INVOKE Event will get fired?

Thanks for the help.

This topic has been closed for replies.

1 reply

cid40Author
Participant
July 29, 2011

I have taken some time to generate a super simple app to show my problem.  If someone could take a look and let me know why it is not work it would really help me out.   I an new to AIR development so it could be something really dumb.   Also I have set the allowBrowserInvocation to true and false and the app start starts but either way I do not get the event.

I first thought it was the installApp call but the docs say it will also call the event.

The Sample Web Site which is nothing more the the contents of the Install Badge Code is at.

To test goto http://host/default_badge.html

The HTML And Install Button

http://dl.dropbox.com/u/23800478/Sites.zip

The Application

http://dl.dropbox.com/u/23800478/testit.zip

cid40Author
Participant
July 29, 2011

I found the issue.  So I guess the BROWSER_INVOKES is only called if the installApp method uses the optional argurments parameter.    After doing that an recompiling and "clearing browser cache" it now call my invoke event.  So the default install button will never call the browser_invoke event I guess.