1. #1
    Sencha Premium Member
    Join Date
    Feb 2011
    Posts
    75
    Answers
    2
    Vote Rating
    1
    ShaneTex is on a distinguished road

      0  

    Default Unanswered: openURL vs childBrowser

    Unanswered: openURL vs childBrowser


    Does the native build using Ext.device.Device.openURL have any options to open the link in a child browser window like Phonegap, or does it strictly only spawn a new safari window the the url sent over.

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    There may be something to do that but this is all I could find for the openURL function:
    Code:
    /**
     * @private
     */
    Ext.define('Ext.device.device.Sencha', {
        extend: 'Ext.device.device.Abstract',
    
    
        constructor: function() {
            this.name = device.name;
            this.uuid = device.uuid;
            this.platform = device.platformName || Ext.os.name;
    
    
            this.initURL();
        },
    
    
        openURL: function(url) {
            Ext.device.Communicator.send({
                command: 'OpenURL#open',
                url: url
            });
        },
    
    
        /**
         * @private
         */
        initURL: function() {
            Ext.device.Communicator.send({
                command: "OpenURL#watch",
                callbacks: {
                    callback: this.updateURL
                },
                scope: this
            });
        },
    
    
        /**
         * @private
         */
        updateURL: function() {
            this.scheme = device.scheme || false;
            this.fireEvent('schemeupdate', this, this.scheme);
        }
    });
    I don't know too much about it so I can't suggest any further options..

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2011
    Posts
    75
    Answers
    2
    Vote Rating
    1
    ShaneTex is on a distinguished road

      0  

    Default


    I looked here, and it doesn't to have any way to configure differently. It works perfect in that I can open in Safari. That works great, but can I open within my app.

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
    Rob King is on a distinguished road

      0  

    Default


    I'm looking for the same functionality and from research its looking like this is not possible in Sencha and those apps we use that do create this browser window that slides up with the "Done" button are using Phonegap.

    I'm two weeks into learning and this might be a deal breaker. Can't believe ST has no remedy for this

Thread Participants: 2

Tags for this Thread