Results 1 to 4 of 4

Thread: Extjs6 Modern app(width sencha cmd) not working on android 4.2 stock browser.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default Extjs6 Modern app(width sencha cmd) not working on android 4.2 stock browser.

    I am using sencha cmd (v6.1.2.15) to create a extjs (v6.0.2) modern app, but it cannot run on an android 4.2 (maybe all android under 4.4) stock browser after I build production(or testing).

    What's weird is that a extjs6 modern app without sencha cmd(a html file + 'ext-modern-all.js' + 'theme-triton-all.css') works like a charm on android 4.2.

    Here is the code (works on android 4.2):
    Code:
    <!DOCTYPE HTML><html lang="">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta charset="UTF-8">
        <meta name="format-detection" content="telephone=no" />
        <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: cdvfile: 'unsafe-eval' *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    
    
        <title>MES</title>
        <link rel="stylesheet" type="text/css" href="theme-triton/resources/theme-triton-all.css">    
        <script type="text/javascript" src="ext-modern-all-debug.js"></script>
        <script type="text/javascript" src="theme-triton/theme-triton-debug.js"></script>
        
        <script type="text/javascript">
            Ext.define("Fiddle.view.main.Form", {
                extend:"Ext.form.Panel",
                alias:"widget.mainform",
                config:{
                    items:[ {
                        xtype:"fieldset",
                        id:"fieldset1",
                        title:"Personal Info",
                        instructions:"Please enter the information above.",
                        defaults:{
                            labelWidth:"35%"
                        },
                        items:[ {
                            xtype:"textfield",
                            name:"name",
                            label:"Name",
                            placeHolder:"Tom Roy",
                            autoCapitalize:true,
                            required:true,
                            clearIcon:true
                        }, {
                            xtype:"passwordfield",
                            name:"bbb",
                            label:"Password",
                            clearIcon:!Ext.theme.is.Blackberry
                        }, {
                            xtype:"emailfield",
                            name:"email",
                            label:"Email",
                            placeHolder:"[email protected]",
                            clearIcon:true
                        }, {
                            xtype:"urlfield",
                            name:"url",
                            label:"Url",
                            placeHolder:"http://sencha.com",
                            clearIcon:true
                        }, {
                            xtype:"spinnerfield",
                            name:"spinner",
                            label:"Spinner",
                            minValue:0,
                            maxValue:10,
                            stepValue:1,
                            cycle:true
                        }, {
                            xtype:"checkboxfield",
                            name:"cool",
                            label:"Cool",
                            value:"Y"
                        }, {
                            xtype:"sliderfield",
                            name:"switch1",
                            label:"Switch1",
                            value:50,
                            minValue:0,
                            maxValue:100
                        }, {
                            xtype:"togglefield",
                            name:"switch2",
                            label:"Switch2",
                            value:1
                        }, {
                            xtype:"datepickerfield",
                            destroyPickerOnHide:true,
                            name:"date",
                            label:"Start Date",
                            value:new Date(),
                            picker:{
                                yearFrom:1990,
                                useTitles:true
                            }
                        }, {
                            xtype:"selectfield",
                            name:"rank",
                            label:"Rank",
                            options:[ {
                                text:"Master",
                                value:"master"
                            }, {
                                text:"Journeyman",
                                value:"journeyman"
                            }, {
                                text:"Apprentice",
                                value:"apprentice"
                            } ]
                        }, {
                            xtype:"textareafield",
                            name:"bio",
                            label:"Bio"
                        } ]
                    } ]
                }
            });
    
    
            Ext.application({
                name:"Fiddle",
                launch:function() {
                    Ext.Viewport.add({
                        xtype:"mainform"
                    });
                }
            });
        </script>
    </head>
    <body>
    </body>
    </html>

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I added your code to this Fiddle:
    https://fiddle.sencha.com/#fiddle/1arp

    Do you see the issue with that test case or does it need to be built with Cmd to trigger the problem?

  3. #3

    Default It need to be built with cmd to recreate this issue

    The code I wrote (or the fiddle you supplied) can work on android 4.2.
    It doesn't work when it was built with sencha cmd 6.1.2.15.

    So, I think it may be a bug of sencha cmd.

  4. #4

    Default

    Can any one help me?

Similar Threads

  1. Replies: 5
    Last Post: 21 Sep 2017, 11:09 AM
  2. Replies: 8
    Last Post: 7 Oct 2016, 7:30 AM
  3. Android Stock Browser Painted event not firing and scroll issue
    By albanx in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 6 Aug 2016, 10:14 PM
  4. Android 4.1 is using Stock browser or Chrome when using with Phonegap ?
    By debianw in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 16 Feb 2013, 2:13 PM
  5. [FIXED] Pinch event throws errors in stock Android browser
    By [email protected] in forum Sencha Touch 2.x: Bugs
    Replies: 3
    Last Post: 8 Oct 2012, 12:35 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
  •