Closed avishayhajbi closed 9 years ago
@avishayhajbi please provide; sample code, platform, log. etc.
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
iOS or Android? I'm assuming Android.
Can you try the new Develop or Master branch? Try the sample application in platforms/android/
i'm tried .. it still have problem. i'm update my last answer the app alert after firing notification : appName has stopped
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",
I'm unable to re-create your error. so please include your logcat output.
it works. thanks. It was my mistake. I'm wrote logo.png thanks again.
it works. thanks. It was my mistake. I'm wrote logo.png thanks again.
when notification show the application been crashed. second the icon doesn't work, i wrote the path and it didn't do anything. thanks