-
12 Nov 2012 7:57 AM #1
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
- Android app using Sencha
- Passing OKCancel as the buttons option for Notification.show() causes buttons to display as [object Object]
- Ext.device.notification.Sencha shows buttons: .../@todo fix this
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' }); } });
-
12 Nov 2012 11:08 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
-
18 Mar 2013 11:55 AM #3
This is still broken in 2.1.1...any ETA?
This duplicates another bug already reported in our system:
TOUCH-3689


Reply With Quote