class Google::Apis::FcmV1::Notification

Basic notification template to use across all platforms.

Attributes

body[RW]

The notification's body text. Corresponds to the JSON property `body` @return [String]

image[RW]

Contains the URL of an image that is going to be downloaded on the device and displayed in a notification. JPEG, PNG, BMP have full support across platforms. Animated GIF and video only work on iOS. WebP and HEIF have varying levels of support across platforms and platform versions. Android has 1MB image size limit. Quota usage and implications/costs for hosting image on Firebase Storage: firebase.google.com/pricing Corresponds to the JSON property `image` @return [String]

title[RW]

The notification's title. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/fcm_v1/classes.rb, line 721
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/fcm_v1/classes.rb, line 726
def update!(**args)
  @body = args[:body] if args.key?(:body)
  @image = args[:image] if args.key?(:image)
  @title = args[:title] if args.key?(:title)
end