-
5 Dec 2012 7:03 AM #1
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.
-
5 Dec 2012 10:23 AM #2
There may be something to do that but this is all I could find for the openURL function:
I don't know too much about it so I can't suggest any further options..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); } });
-
5 Dec 2012 6:13 PM #3
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.
-
6 Dec 2012 5:01 PM #4
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


Reply With Quote