0

How can I get Dashboard notification in my Palm-Pre application?

Shog9
  • 156,901
  • 35
  • 231
  • 235

2 Answers2

4

A dashboard notification is just another view in the application. Dashboard panels are covered in the Mojo SDK documentation at http://developer.palm.com/index.php?option=com_content&view=article&id=1632.

Ben Combee
  • 16,831
  • 6
  • 41
  • 42
0

Call this.notify() and declare notify() as following

YourAssistant.prototype.notify = function(custom,event) {
    console.log("################# NOTIFY ############")
    var target = custom;
    var appController = Mojo.Controller.getAppController();
    this.controller.commitChanges();
    var bannerParams = {
        soundClass: '', 
        soundFile: '', 
        icon: '',
        messageText: 'hahaha hahaha'
    }
    appController.showBanner(bannerParams, {banner: this.message});
}
iwan
  • 7,269
  • 18
  • 48
  • 66