Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add missing getters for notification attributes
  • Loading branch information
lukebars committed Jun 8, 2020
commit e207fa8d626d40bb5c95e8b1128a25065729a94f
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,26 @@ public String getId() {
return id;
}

public String getSound() {
return sound;
}

public String getMessage() {
return message;
}

public String getTitle() {
return title;
}

public String getNumber() {
return number;
}

public String getRepeatType() {
return repeatType;
}

public double getFireDate() {
return fireDate;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,13 +739,12 @@ public WritableArray getScheduledLocalNotifications() {
notificationMap.putString("title", notification.getTitle());
notificationMap.putString("message", notification.getMessage());
notificationMap.putString("number", notification.getNumber());
notificationMap.putString("date", notification.getFireDate());
notificationMap.putDouble("date", notification.getFireDate());
notificationMap.putString("id", notification.getId());
notificationMap.putBoolean("remote", false);
notificationMap.putString("repeatInterval", notification.getRepeatType());
notificationMap.putString("soundName", notification.getSound());


scheduled.pushMap(notificationMap);
} catch (JSONException e) {
Log.e(LOG_TAG, e.getMessage());
Expand Down