Commit 54575439 by Sebastián Katzer

Calling `cancel` on Android with an invalid String as ID does not throw an error anymore.

parent 4fc99882
......@@ -138,7 +138,10 @@ public class LocalNotification extends CordovaPlugin {
NotificationManager nc = getNotificationManager();
am.cancel(pi);
try {
nc.cancel(Integer.parseInt(notificationId));
} catch (Exception e) {}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment