Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Jan 31, 2018
1 parent 5f6996b commit b996b85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</feature>
</config-file>

<config-file parent="/*" target="AndroidManifest.xml">
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<meta-data
android:name="com.urbanairship.autopilot"
android:value="com.urbanairship.cordova.CordovaAutopilot"/>
Expand Down Expand Up @@ -123,7 +123,7 @@
src="src/android/UAirshipPluginManager.java"
target-dir="src/com/urbanairship/cordova"/>
<source-file
src="src/android/events/ChannelEvent.java"
src="src/android/events/RegistrationEvent.java"
target-dir="src/com/urbanairship/cordova/events"/>
<source-file
src="src/android/events/DeepLinkEvent.java"
Expand Down
4 changes: 2 additions & 2 deletions src/android/CordovaAirshipReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected void onNotificationPosted(@NonNull Context context, @NonNull Notificat
protected boolean onNotificationOpened(@NonNull Context context, @NonNull NotificationInfo notificationInfo) {
Log.i(TAG, "Notification opened. Alert: " + notificationInfo.getMessage().getAlert() + ". NotificationId: " + notificationInfo.getNotificationId());

UAirshipPluginManager.shared().notificationOpened(notificationInfo.getNotificationId(), notificationInfo.getMessage());
UAirshipPluginManager.shared().notificationOpened(notificationInfo);

// Return false here to allow Urban Airship to auto launch the launcher activity
return false;
Expand All @@ -91,7 +91,7 @@ protected boolean onNotificationOpened(@NonNull Context context, @NonNull Notifi
protected boolean onNotificationOpened(@NonNull Context context, @NonNull NotificationInfo notificationInfo, @NonNull ActionButtonInfo actionButtonInfo) {
Log.i(TAG, "Notification action button opened. Button ID: " + actionButtonInfo.getButtonId() + ". NotificationId: " + notificationInfo.getNotificationId());

UAirshipPluginManager.shared().notificationOpened(notificationInfo.getNotificationId(), notificationInfo.getMessage());
UAirshipPluginManager.shared().notificationOpened(notificationInfo, actionButtonInfo);

// Return false here to allow Urban Airship to auto launch the launcher
// activity for foreground notification action buttons
Expand Down

0 comments on commit b996b85

Please sign in to comment.