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
cbfe67ca
Commit
cbfe67ca
authored
Feb 05, 2018
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call the saved delegate not only for push notifications
parent
63c99d3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
APPLocalNotification.m
src/ios/APPLocalNotification.m
+11
-12
No files found.
src/ios/APPLocalNotification.m
View file @
cbfe67ca
...
...
@@ -507,12 +507,12 @@
{
UNNotificationRequest
*
toast
=
notification
.
request
;
if
([
toast
.
trigger
isKindOfClass
:
UNPushNotificationTrigger
.
class
])
{
[
_delegate
userNotificationCenter
:
center
willPresentNotification
:
notification
withCompletionHandler
:
completionHandler
];
[
_delegate
userNotificationCenter
:
center
willPresentNotification
:
notification
withCompletionHandler
:
completionHandler
];
if
([
toast
.
trigger
isKindOfClass
:
UNPushNotificationTrigger
.
class
])
return
;
}
APPNotificationOptions
*
options
=
toast
.
options
;
...
...
@@ -539,14 +539,14 @@
{
UNNotificationRequest
*
toast
=
response
.
notification
.
request
;
[
_delegate
userNotificationCenter
:
center
didReceiveNotificationResponse
:
response
withCompletionHandler
:
completionHandler
];
completionHandler
();
if
([
toast
.
trigger
isKindOfClass
:
UNPushNotificationTrigger
.
class
])
{
[
_delegate
userNotificationCenter
:
center
didReceiveNotificationResponse
:
response
withCompletionHandler
:
completionHandler
];
if
([
toast
.
trigger
isKindOfClass
:
UNPushNotificationTrigger
.
class
])
return
;
}
NSMutableDictionary
*
data
=
[[
NSMutableDictionary
alloc
]
init
];
NSString
*
action
=
response
.
actionIdentifier
;
...
...
@@ -585,8 +585,8 @@
{
eventQueue
=
[[
NSMutableArray
alloc
]
init
];
_center
=
[
UNUserNotificationCenter
currentNotificationCenter
];
_delegate
=
_center
.
delegate
;
_delegate
=
_center
.
delegate
;
_center
.
delegate
=
self
;
[
_center
registerGeneralNotificationCategory
];
...
...
@@ -715,4 +715,3 @@
}
@end
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