this is the portion of code i get from the web to implement the notification, it worked when i do in browser testing but i don't know why it's not working when i use the same code in my phone running android. the application couldn't run on iOS as well.
'Please enter correct username and password', // message
null, // callback
'Information', // title
'Okay' // buttonName
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
A quick way to see is to enable debugging on your android device, connect it to a computer with the Android SDK installed, and run this from the command line:
adb logcat -s CordovaLog
which will filter the log to show only output from your phonegap app. Then try running your notification code and check for errors.