freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

Could you add an example? #33

Closed darker89 closed 7 years ago

darker89 commented 10 years ago

Hi everyone,

i can't run on android. how can i send local notification?

Sorry for my bad english

esdebon commented 10 years ago

Use this function:

public function local(msg:String, seg:int, title:String):void{
        if(PushNotification.getInstance().isPushNotificationSupported){
            push.sendLocalNotification(msg, (((seg *  1000) + new Date().getTime())/1000), title);
        }
    }