Skip to content

custom sounds for APN stopped working after moving to FCM v2 #715

Open
@freng

Description

@freng

def apns_config
json = ActiveSupport::OrderedHash.new
json['payload'] = ActiveSupport::OrderedHash.new
aps = ActiveSupport::OrderedHash.new
aps['mutable-content'] = 1 if mutable_content
aps['content-available'] = 1 if content_available
aps['sound'] = 'default' if sound == 'default'
json['payload']['aps'] = aps
json
end

Hi, custom sounds stopped working for me with rpush 9.0 when sending FCM APN notifications. In the code I see that only 'default' is passed over to the sound entry in the apn dict. When I change this to passing the sound variable when it is set (as it is implemented for android), it is working again

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions