2009-08-01 22 views
0

Comment puis-je obtenir une notification de tableau de bord dans mon application Palm-Pre?Notification Palm Pre Dashboard

+2

félicitations pour avoir posé une question claire, détaillée. Je suis sûr qu'il obtiendra des réponses utiles .... ou NON ... –

Répondre

0

Appel this.notify() et déclarer notify() comme suit

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}); 
}