Skip to content

Commit c1ae7aa

Browse files
author
Jacopo Beschi
committed
Remove token from constructor
It's set before sending the notification to a device
1 parent 7c9d2d0 commit c1ae7aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/action_native_push/notification.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Notification
66

77
# Attributes
88
#
9-
# token - The device token to send the notification to
109
# title - The title
1110
# body - The message body
1211
# badge - The badge number to display on the app icon
@@ -15,8 +14,7 @@ class Notification
1514
# high_priority - Whether to send the notification with high priority (default: true)
1615
# platform_payload - A hash of platform-specific payload data keyed by platform (e.g., :apns, :fcm)
1716
# custom_payload - A hash of custom data to include in the notification
18-
def initialize(token: nil, title: nil, body: nil, badge: nil, thread_id: nil, sound: nil, high_priority: true, platform_payload: {}, custom_payload: {})
19-
@token = token
17+
def initialize(title: nil, body: nil, badge: nil, thread_id: nil, sound: nil, high_priority: true, platform_payload: {}, custom_payload: {})
2018
@title = title
2119
@body = body
2220
@badge = badge

0 commit comments

Comments
 (0)