mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(gateway): drop the invalid group field from FCM android notifications (#1618)
This commit is contained in:
1 parent
4e9b8fa1a6
commit
e956e6fb4a
1 file changed
+3
-4
@@ -64,15 +64,14 @@ build_notification_message(DeviceToken, Payload) ->
|
||||
),
|
||||
Data = build_notification_data(Payload, Title, Body, Tag, ImageUrl),
|
||||
Group = resolve_notification_group(maps:get(<<"data">>, Payload, #{}), Tag),
|
||||
AndroidNotification = build_android_notification(Tag, ImageUrl, Group),
|
||||
AndroidNotification = build_android_notification(Tag, ImageUrl),
|
||||
wrap_notification_message(DeviceToken, NotificationBody, Data, AndroidNotification, Group).
|
||||
|
||||
-spec build_android_notification(binary(), binary() | undefined, binary()) -> map().
|
||||
build_android_notification(Tag, ImageUrl, Group) ->
|
||||
-spec build_android_notification(binary(), binary() | undefined) -> map().
|
||||
build_android_notification(Tag, ImageUrl) ->
|
||||
maybe_put(<<"image">>, ImageUrl, #{
|
||||
<<"channel_id">> => <<"fluxer_default_push">>,
|
||||
<<"tag">> => Tag,
|
||||
<<"group">> => Group,
|
||||
<<"click_action">> => <<"FLUXER_MESSAGE">>
|
||||
}).
|
||||
|
||||
|
||||
Reference in new issue
Block a user