Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-notifications
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
冷佳娟
react-native-notifications
Commits
816b09e9
Commit
816b09e9
authored
Nov 15, 2017
by
David Stoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add iOS version checks to prevent crashes on iOS 8"
This reverts commit
9a47c853
.
parent
9a47c853
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
RNNotifications/RNNotifications.m
RNNotifications/RNNotifications.m
+2
-6
No files found.
RNNotifications/RNNotifications.m
View file @
816b09e9
...
...
@@ -62,9 +62,7 @@ RCT_ENUM_CONVERTER(UIUserNotificationActionBehavior, (@{
UIMutableUserNotificationAction
*
action
=
[
UIMutableUserNotificationAction
new
];
action
.
activationMode
=
[
RCTConvert
UIUserNotificationActivationMode
:
details
[
@"activationMode"
]];
if
(
SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO
(
@"9.0"
))
{
action
.
behavior
=
[
RCTConvert
UIUserNotificationActionBehavior
:
details
[
@"behavior"
]];
}
action
.
behavior
=
[
RCTConvert
UIUserNotificationActionBehavior
:
details
[
@"behavior"
]];
action
.
authenticationRequired
=
[
RCTConvert
BOOL
:
details
[
@"authenticationRequired"
]];
action
.
destructive
=
[
RCTConvert
BOOL
:
details
[
@"destructive"
]];
action
.
title
=
[
RCTConvert
NSString
:
details
[
@"title"
]];
...
...
@@ -102,9 +100,7 @@ RCT_ENUM_CONVERTER(UIUserNotificationActionBehavior, (@{
UILocalNotification
*
notification
=
[
UILocalNotification
new
];
notification
.
fireDate
=
[
RCTConvert
NSDate
:
details
[
@"fireDate"
]];
notification
.
alertBody
=
[
RCTConvert
NSString
:
details
[
@"alertBody"
]];
if
(
SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO
(
@"8.2"
))
{
notification
.
alertTitle
=
[
RCTConvert
NSString
:
details
[
@"alertTitle"
]];
}
notification
.
alertTitle
=
[
RCTConvert
NSString
:
details
[
@"alertTitle"
]];
notification
.
alertAction
=
[
RCTConvert
NSString
:
details
[
@"alertAction"
]];
notification
.
soundName
=
[
RCTConvert
NSString
:
details
[
@"soundName"
]]
?:
UILocalNotificationDefaultSoundName
;
if
([
RCTConvert
BOOL
:
details
[
@"silent"
]])
{
...
...
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