Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios isFreshchatPushNotification not working #46

Open
harindermarwa opened this issue Nov 20, 2020 · 0 comments
Open

ios isFreshchatPushNotification not working #46

harindermarwa opened this issue Nov 20, 2020 · 0 comments

Comments

@harindermarwa
Copy link

harindermarwa commented Nov 20, 2020

IOS push notifications working but not passing the following function so it is not updating the current chat in realtime.
(not handling the notifications from fresh chat.)

window.freshchat.isFreshchatPushNotification(notification, (success, isFreshchatNotif) => { if (success && isFreshchatNotif) { this.freshchat.handlePushNotification(notification); } });

Here is the notifications response from freshchat on any new message -
{"additionalData":{"source":"freshchat_user","channel_id":"37688","coldstart":false,"notif_type":"1","target_user_alias":"8285ADF1-AC3B-4EB7-B94B-21B2199F7D4C","conv_id":"422250267625603","foreground":true,"ephemeral":false,"mutable-content":1},"message":"hi new message","count":1,"sound":"default"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant