This duplicates another bug already reported in our system: TOUCH-3689
  1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    574
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default Notification Sencha - Buttons

    Notification Sencha - Buttons


    Notification.PhoneGap shows [object Object] for button

    REQUIRED INFORMATION

    Ext version tested:
    • Sencha Touch 2.1.0 Commertial FINAL
    Browser versions tested against:
    • Android app using Sencha
    Description:
    • Passing OKCancel as the buttons option for Notification.show() causes buttons to display as [object Object]
    Problem:
    • Ext.device.notification.Sencha shows buttons: .../@todo fix this
    Here is a possible fix:
    Code:
    /**
     * @private
     */
    Ext.define('Ext.device.notification.Sencha', {
        extend: 'Ext.device.notification.Abstract',
        requires: ['Ext.device.Communicator'],
    
    
        show: function() {
            var config = this.callParent(arguments),
    	        buttons = [];
    
    
    	    for (i = 0, ln = config.buttons.length; i < ln; i++){
    
    
    		    buttons[i]= config.buttons[i].text;
    	    }
    
    
    	    Ext.device.Communicator.send({
                command: 'Notification#show',
                callbacks: {
                    callback: config.callback
                },
                scope  : config.scope,
                title  : config.title,
                message: config.message,
                buttons: buttons.join(',') //old-->@todo fix this
            });
        },
    
    
        vibrate: function() {
            Ext.device.Communicator.send({
                command: 'Notification#vibrate'
            });
        }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2012
    Location
    Concord, NC
    Posts
    44
    Vote Rating
    1
    matthewpayne is on a distinguished road

      0  

    Default


    This is still broken in 2.1.1...any ETA?

  4. #4
    Ext JS Premium Member
    Join Date
    May 2011
    Posts
    11
    Vote Rating
    0
    csowell is on a distinguished road

      0  

    Default


    I'm using Sencha 2.2.1, and I'm still having this issue. Has it been resolved yet?

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    574
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    Definately fixed in 2.3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi