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
f43aa60d
Commit
f43aa60d
authored
Feb 19, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling notifications when application process has been killed #87
parent
78bb3e81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
plugin.xml
plugin.xml
+2
-1
APPLocalNotification.m
src/ios/APPLocalNotification.m
+21
-1
No files found.
plugin.xml
View file @
f43aa60d
...
...
@@ -28,7 +28,8 @@
<platform
name=
"ios"
>
<config-file
target=
"config.xml"
parent=
"/*"
>
<feature
name=
"LocalNotification"
>
<param
name=
"ios-package"
value=
"APPLocalNotification"
/>
<param
name=
"ios-package"
value=
"APPLocalNotification"
onload=
"true"
/>
<param
name=
"onload"
value=
"true"
/>
</feature>
</config-file>
...
...
src/ios/APPLocalNotification.m
View file @
f43aa60d
...
...
@@ -35,6 +35,8 @@
-
(
UILocalNotification
*
)
notificationWithProperties
:(
NSMutableDictionary
*
)
options
;
// Ruft die JS-Callbacks auf, nachdem eine Notification eingegangen ist
-
(
void
)
didReceiveLocalNotification
:(
NSNotification
*
)
localNotification
;
// Ruft die JS-Callbacks auf, nachdem eine Notification eingegangen ist
-
(
void
)
didFinishLaunchingWithOptions
:(
NSNotification
*
)
notification
;
// Hilfsmethode gibt an, ob er String NULL oder Empty ist
-
(
BOOL
)
strIsNullOrEmpty
:(
NSString
*
)
str
;
// Fires the given event
...
...
@@ -301,11 +303,29 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
}
/**
* Ruft die JS-Callbacks auf, nachdem eine Notification eingegangen ist.
*/
-
(
void
)
didFinishLaunchingWithOptions
:
(
NSNotification
*
)
notification
{
NSDictionary
*
launchOptions
=
[
notification
userInfo
];
UILocalNotification
*
localNotification
=
[
launchOptions
objectForKey
:
UIApplicationLaunchOptionsLocalNotificationKey
];
if
(
localNotification
)
{
[
self
didReceiveLocalNotification
:
notification
];
}
}
/**
* Registriert den Observer für LocalNotification Events.
*/
-
(
void
)
pluginInitialize
{
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
didReceiveLocalNotification
:
)
name
:
CDVLocalNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
didReceiveLocalNotification
:
)
name
:
CDVLocalNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
didFinishLaunchingWithOptions
:
)
name
:
UIApplicationDidFinishLaunchingNotification
object
:
nil
];
}
/**
...
...
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