Results 1 to 5 of 5

Thread: Android intents not working from ExtJS app

  1. #1
    Sencha Premium Member
    Join Date
    Jan 2016
    Posts
    32

    Question Android intents not working from ExtJS app

    Hi,

    I am developing an ExtJS 6.5.3 (modern toolkit ) application packaged with Cordova. I am trying to launch another application Naver Maps from ExtJS app using Android intents.

    My intent URL is
    intent://route/car?slat=37.58547222&slng=127.14777778&dlat=37.42999009837643&dlng=127.240805339793&appname=<App/Package name>#Intent;scheme=nmap;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;package=com.nhn.android.nmap;end
    App/Package name value can be like com.example.myapp .

    To open this intent URL I am using Cordova Inappbrowser plugin and then calling window.open(url) method to launch the intent.

    This approach is not working and giving an error ERR_UNKNOWN_URL_SCHEME.

    Any idea how we can successfully call android intents from a button tap in Sencha extJS application?

    regards
    Nitesh

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,450
    Answers
    3997

    Default

    Can you call it without extjs? Extjs doesn’t do anything to prevent it so I don’t think this is an extjs issue.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2016
    Posts
    32

    Default

    We are trying to call it through Cordova Inappbrowser version as suggested by the Naver maps documentation. Have not seen a working version though.
    Does ExtJS have any provision to call an intent? The objective is to launch another app Naver maps in the device. If there is such a provision then we can check that.

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,450
    Answers
    3997

    Default

    There isn’t anything to be done, this is handled by the browser.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha Premium Member
    Join Date
    Jan 2016
    Posts
    32

    Default

    How do we make the 'intent' URL call from Sencha ExtJS?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •