Wizcorp / phonegap-plugin-localNotifications

PhoneGap plugin for providing native local notification system to JavaScript.
MIT License
38 stars 29 forks source link

application crash when notification show #17

Closed avishayhajbi closed 9 years ago

avishayhajbi commented 9 years ago

when notification show the application been crashed. second the icon doesn't work, i wrote the path and it didn't do anything. thanks

aogilvie commented 9 years ago

@avishayhajbi please provide; sample code, platform, log. etc.

avishayhajbi commented 9 years ago

i'm using cordova 3.5.0 my code is : localNotification.add(103, { seconds: 60, title: "welcome", message: "have fun", icon: "img/logo.png", badge: 1});

the icon isn't show.. i have a star as icon and when the notification activate i have a message that says: "myAppName" has stopped

aogilvie commented 9 years ago

iOS or Android? I'm assuming Android. Can you try the new Develop or Master branch? Try the sample application in platforms/android/

avishayhajbi commented 9 years ago

i'm tried .. it still have problem. i'm update my last answer the app alert after firing notification : appName has stopped

aogilvie commented 9 years ago

Star is the default image. Currently Android reads the drawable name only. iconResource = cordova.getActivity().getResources().getIdentifier(icon, "drawable", cordova.getActivity().getPackageName());

you should put your image (logo.png) in res/drawable and put this in options icon: "logo",

aogilvie commented 9 years ago

I'm unable to re-create your error. so please include your logcat output.

avishayhajbi commented 9 years ago

it works. thanks. It was my mistake. I'm wrote logo.png thanks again.

avishayhajbi commented 9 years ago

it works. thanks. It was my mistake. I'm wrote logo.png thanks again.