Class: Pushkin::Fcm::SendAndroidPushService
- Inherits:
-
SendFcmPushService
- Object
- SendFcmPushService
- Pushkin::Fcm::SendAndroidPushService
- Defined in:
- app/services/pushkin/fcm/send_android_push_service.rb
Constant Summary
Constants inherited from SendFcmPushService
Pushkin::Fcm::SendFcmPushService::FCM_API_DOMAIN, Pushkin::Fcm::SendFcmPushService::FCM_API_URL
Instance Attribute Summary
Attributes inherited from SendFcmPushService
#payload, #server_key, #tokens
Instance Method Summary collapse
Methods inherited from SendFcmPushService
#call, #get_data_hash, #get_request_body, #initialize, #parse_token_result, #process_response
Constructor Details
This class inherits a constructor from Pushkin::Fcm::SendFcmPushService
Instance Method Details
#get_notification_hash ⇒ Object
5 6 7 8 9 10 |
# File 'app/services/pushkin/fcm/send_android_push_service.rb', line 5 def get_notification_hash notification_hash = super notification_hash[:icon] = self.payload.android_icon if self.payload.android_icon.present? notification_hash[:click_action] = self.payload.android_click_action if self.payload.android_click_action.present? notification_hash end |
#get_platform ⇒ Object
12 13 14 |
# File 'app/services/pushkin/fcm/send_android_push_service.rb', line 12 def get_platform :android end |
#is_data_message ⇒ Object
16 17 18 |
# File 'app/services/pushkin/fcm/send_android_push_service.rb', line 16 def self.payload. end |