react-native-ua
Advanced tools
Comparing version 0.0.8 to 0.0.9-alpha.1
16
index.js
@@ -35,9 +35,11 @@ import { | ||
call_notification_listeners({ | ||
'platform': 'ios', | ||
'event': notification.event, | ||
'alert': notification.data.aps.alert, | ||
'data': notification.data, | ||
'url': action_url | ||
}); | ||
if (notification && notification.data && notification.data.aps && notification.data.aps.alert) { | ||
call_notification_listeners({ | ||
'platform': 'ios', | ||
'event': notification.event, | ||
'alert': notification.data.aps.alert, | ||
'data': notification.data, | ||
'url': action_url | ||
}); | ||
} | ||
}); | ||
@@ -44,0 +46,0 @@ |
{ | ||
"name": "react-native-ua", | ||
"version": "0.0.8", | ||
"version": "0.0.9-alpha.1", | ||
"description": "React Native module for Urban Airship platforms: iOS and Android", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,3 +42,3 @@ # React Native Module for Urban Airship | ||
- Xcode 7.0 or higher | ||
- Xcode 8.0 or higher | ||
- Node 4.4 | ||
@@ -188,2 +188,10 @@ - React Native Command Line Tools | ||
10. To enable alert when receive Push Notification in foreground implement the userNotificationCenter:willPresentNotification:withCompletionHandler method on AppDelegate class: | ||
```objective-c | ||
- (void) userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler { | ||
completionHandler(UNNotificationPresentationOptionAlert); | ||
} | ||
``` | ||
## Methods | ||
@@ -190,0 +198,0 @@ - **[ReactNativeUA.enable_notification()](https://github.com/globocom/react-native-ua/blob/master/index.js#L63)**: Prompt user to enable notification receivement; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
50880982
282
516
264
2