Results 1 to 4 of 4

Thread: openURL vs childBrowser

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2011
    Posts
    75
    Answers
    2
    Vote Rating
    1
      0  

    Default 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
    100
      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
      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
      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

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
  •