Results 1 to 4 of 4

Thread: Android intents not working in Chrome

  1. #1
    Sencha User
    Join Date
    Jul 2015
    Posts
    11

    Default Android intents not working in Chrome

    I have a problem using android intents. When I try it outside of ExtJS my intent works perfectly (starts navigation, find my location and starts navigating). But inside a button handler it opens only a blank tab with the intent url.

    my intent url looks like this:
    Code:
    url = "intent:google.navigation:q="+latitude+","+longitude+"#Intent;package=com.google.android.apps.maps;end";
    using it in connection with:
    Code:
    window.open(url);
    Is there a walkaround to make it work? A few days ago, before browser update, everything was working... My Chrome version is 47.0.2526.83

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    Do you have a runnable example showing what you're trying to do? It could be that the URL is bad. I am not familiar with Intents, but in this example I was able to get the Barcode Scanner app to launch:

    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3
    Sencha User
    Join Date
    Jul 2015
    Posts
    11

    Default

    Thank you. The whole problem was made by google - google restricted starting intents from javascript apps, that means it blocked all intents that I wanted to start from ExtJS. The solution was to insert a piece of HTML code generated with ExtJS with the intent link and it all started to work!

  4. #4
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    Great! If you don't mind posting your solution for others, that would be great for the community. Thanks!
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Chrome 43.0.2357.92 on Android 5.1.1 - Overrides not working
    By Courtney_Roes in forum Sencha Touch 2.x: Bugs
    Replies: 6
    Last Post: 17 Jun 2015, 12:52 AM
  2. [FIXED] Number Field place holder not working in Android 4.1.2 and Android Android 4.0.4
    By mohamedaslam.a in forum Sencha Touch 2.x: Bugs
    Replies: 6
    Last Post: 11 Oct 2013, 11:12 AM
  3. [INFOREQ] Dragable dosen't work on Android, but works fine in chrome for Android,plesse help
    By zouhouzi in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 16 Sep 2013, 12:31 PM
  4. Ext.Audio working on Chrome, Android and iPhone but not on iPad?
    By Philippe Quemener in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 17 Oct 2012, 10:49 PM
  5. Replies: 3
    Last Post: 4 Jan 2012, 3:14 PM

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
  •