-
31 Dec 2012 6:50 AM #1
Ext.device.Notification.show Error when app added to Home screen
Ext.device.Notification.show Error when app added to Home screen
I am having a problem getting Ext.device.Notification.show to work after an app is loaded to the home screen on any Iphone/Ipad. The notification works great if I am viewing the app in the browser, but once I add the app to the home screen, the notifications never show. If I run a Ext.Msg.alert(title, message, callback), it works but the notification quits working and never show after I add to the home screen.
This is my code:
Ext.device.Notification.show({ title:'Verification', message:'Is your email address: test@sencha.com', buttons:Ext.MessageBox.OKCANCEL, callback:function(button){if(button ==="ok"){ console.log('Verified');}else{ console.log('Nope');}}});
-
31 Dec 2012 7:00 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Ext.device classes are suppose to work when in a packaged app. In the browser or added to homescreen is not a packaged app.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
31 Dec 2012 7:10 AM #3
Gothcha, so the simulator class is only for testing purposes.
So are these the only classes for web/home screen implementation:
Ext.Msg.confirm(title, message, callback);
Ext.Msg.alert(title, message, callback);
-
31 Dec 2012 7:14 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Yes
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
31 Dec 2012 7:31 AM #5
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote