-
Notifications
You must be signed in to change notification settings - Fork 140
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
How to handle ios push notification inside code #488
Comments
@abarone-btf Maybe this is helpful https://developers.intercom.com/installing-intercom/ios/push-notifications#step-4-handling-intercom-push-notifications You may also need to setup "IntercomUniversalLinkDomains". Note: As per my personal experience, even after setting the IntercomUniversalLinkDomains, the clicks from Intercom are opening the Safari browser. They are not opening the particular screen or page. I'm also using the Firebase dynamic links. |
Thank you @deepak786 !. I tried to put that config into the plist but dont know how to handle the intercom logic inside my flutter app. Do you know how to do it? (sorry if its a noob question). In my case the links open my app just fine but just redirect to the home page (they do not redirect to the particular page, doesnt matter what I put in the intercom website) 😭 |
@abarone-btf firebase_messaging support only notifications which are received from the firebase. on IOS side it should looks approximately like on attached image (here you are listening all tapped notifications and send it to your flutter code) - on flutter side you can check if notification is Intercom and handle it. |
Yes, Intercom uses APNs to send the notification on iOS. |
Thats good to know!. Thank you very much for the image! @il2be97 . By any chance do you know (or have a post/project) that implements this behavior entirely? (the |
I haven't seen any good packages which provided that behavior. So I can explain how you can do this he same thing: You have two ways to do that:
|
@abarone-btf if still relevant - you can try to use this plugin (or simply duplicate the code) |
More than issue is a question/advice in how can I run a function when a push notification is sent by intercom.
I tried to use firebase_messaging callbacks but on iOS none of them work (its never executed).
Is there a tutorial in how to execute dart logic when a notification sent from intercom is received? (iOS particularly)
Why you may ask:
Thanks for your help
The text was updated successfully, but these errors were encountered: