• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

Arguments not getting passed, on opening application from browser using custom scheme url mac

Community Beginner ,
Jun 29, 2020 Jun 29, 2020

Copy link to clipboard

Copied

Requirement : Need to run an Adobe AIR captive runtime application from browser in mac.
After creating application have added CFBundleURLTypes tag in Info.plist

 

<key>CFBundleURLTypes</key>
            <array>
            <dict>
                <key>CFBundleURLName</key>
                <string>com.test.helloworld</string>
                <key>CFBundleURLSchemes</key>
                <array>
                <string>testapp</string>
                </array>
            </dict>
            </array>

 

Then opening the application once to register CFBundleURLTypes in mac os.

Then, when I open this url in browser testapp://login?user123&pass=abc application gets opened but argument is not passed.

 

window.runtime.flash.desktop.NativeApplication.nativeApplication.addEventListener(window.runtime.flash.events.InvokeEvent.INVOKE, function (event) {
alert("event.arguments="+event.arguments);

 

 

Screen Shot 2020-06-29 at 6.39.05 PM.png

 

If I don't not close this application and open the url testapp://login?user123&pass=abc again then application's InvokeEvent.INVOKE event is triggered again and parameters is passed

 

Screen Shot 2020-06-29 at 6.50.14 PM.png

 

Why this argument is not getting passed first time?

TOPICS
Development

Views

404

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

@vishwanath119 Did you find any solution to this? Any update? We are experiencing the same issue even with a NW.js app, which is weird.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

LATEST

You should log this as an issue in the air issue tracker:

 

https://github.com/Gamua/Adobe-Runtime-Support/issues

air native extensions // https://airnativeextensions.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines