Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
a744504c
Commit
a744504c
authored
Mar 30, 2016
by
PC Dreams (Paulo Cristo)
Committed by
Sebastián Katzer
Sep 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash on samsung devices, 500 alarms limit
parent
251a7ccf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
LocalNotification.java
src/android/LocalNotification.java
+12
-3
No files found.
src/android/LocalNotification.java
View file @
a744504c
...
@@ -37,6 +37,7 @@ import org.json.JSONObject;
...
@@ -37,6 +37,7 @@ import org.json.JSONObject;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.lang.Exception
;
import
de.appplant.cordova.plugin.notification.Manager
;
import
de.appplant.cordova.plugin.notification.Manager
;
import
de.appplant.cordova.plugin.notification.Notification
;
import
de.appplant.cordova.plugin.notification.Notification
;
...
@@ -227,10 +228,18 @@ public class LocalNotification extends CordovaPlugin {
...
@@ -227,10 +228,18 @@ public class LocalNotification extends CordovaPlugin {
for
(
int
i
=
0
;
i
<
notifications
.
length
();
i
++)
{
for
(
int
i
=
0
;
i
<
notifications
.
length
();
i
++)
{
JSONObject
options
=
notifications
.
optJSONObject
(
i
);
JSONObject
options
=
notifications
.
optJSONObject
(
i
);
Notification
notification
=
try
{
getNotificationMgr
().
schedule
(
options
,
TriggerReceiver
.
class
);
Notification
notification
=
getNotificationMgr
().
schedule
(
options
,
TriggerReceiver
.
class
);
fireEvent
(
"schedule"
,
notification
);
fireEvent
(
"schedule"
,
notification
);
}
catch
(
Exception
generic
)
{
//silently ignore the exception
//on some samsung devices there is a known bug where a 500 alarms limit can crash the app
//http://developer.samsung.com/forum/board/thread/view.do?boardName=General&messageId=280286&listLines=15&startId=zzzzz%7E&searchSubId=0000000001
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment