crisp-sdk-ios
crisp-sdk-ios copied to clipboard
Notifications
It would be great to know if the user has some unread messages, or notifications also. Is it possible to have in the SDK? Do you have any plans about it?
@baptistejamin is still in the backlog?
We are very close to deciding on going forward with Crisp, but this feature is essential for our users.
We are going to offer an integration with OneSignal
Sounds great, when can we expect this to be released?
@baptistejamin when can we expect this to be released?
@baptistejamin - A year or two ago, Intercom's SDK had this functionality built-in so that a message was never missed. If the app was in the foreground, they had a nice chat bubble appear as an overlay to whatever screen the user was on. If the app was in the background, some hooks could be set up to catch it as per the normal routine of handling push notifications. No third-party required. This would be a nice addition. I believe it requires a good chunk of work on your backend to be able to accept our push credentials and use them however.
Do you use FCM in your app?
On Thu 17 Aug 2023 at 18:30, Adam St. John @.***> wrote:
@baptistejamin https://github.com/baptistejamin - A year or two ago, Intercom's SDK had this functionality built-in so that a message was never missed. If the app was in the foreground, they had a nice chat bubble appear as an overlay to whatever screen the user was on. If the app was in the background, some hooks could be set up to catch it as per the normal routine of handling push notifications. No third-party required. This would be a nice addition. I believe it requires a good chunk of work on your backend to be able to accept our push credentials and use them however.
— Reply to this email directly, view it on GitHub https://github.com/crisp-im/crisp-sdk-ios/issues/17#issuecomment-1682601907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGTRQ762RV6RIODXGDD55DXVZBJNANCNFSM4JRUN7XA . You are receiving this because you were mentioned.Message ID: @.***>
-- Baptiste Jamin Co-founder CEO, Crisp https://crisp.im/ - Connect your customers to your team.
Yes, we use FCM. Is there a way to get this done. As right now what I can figure out it to use a webhook and do a lot of hardwork at our end :)
A Trick that many push notification systems like PinPoint Twilio SDK etc does, where-in the firebase token specific to SDK is pulled from the app and is associated with the User external SDK like of yourselves are creating at your backend for communication using push notification whenever a new message is written by Agent to a user.
@baptistejamin I like Crisp on the web but it is the only one that doesn't handle push notification on iOS (unlike HelpCrunch, Customerly and of course Intercom) iOS support is not viable without notifications.
- the user send you a message
- you answer
- the use never sees your message since their are no push notification or badges.
- all support done on iOS is unless Please fix 🙏
It's something we are highly considering, however it means connecting to APNS or FCM.
You guys are using APNS? FCM?
APNS will work for sure. Either one is fine for me but you should do check if you can send push notification for Firebase Rest api with a regular API key. If you need the admin sdk private key of the project that's not viable.
If you have an Android App it will be the way anyway...
For Android Intercom asks for the Admin SDK private key, but not for iOS where they use APNS directly. Any ETA on this?
@baptistejamin - for what it's worth, my suggestion would be to not force anyone to use FCM as some will inherently be using APNS directly. This means you would need to collect private tokens for both APNS (ios) and FCM (android) from Crisp clients and store them on the company's crisp profile in a secure way so that you can send push notifications on behalf of your clients. Your backend would integrate with both platforms and switch based on both platform and the private token of each client.
On the sdk side, you would need to collect the device push tokens and again store those on your backend associated with each chat user and what type of mobile device they are using for each token.
Then you have everything you would need to deliver push messages based on platform.
From there you would need to expose some hooks in the SDK api's so we can direct notifications that your the Crisp SDK could catch based on some data in the payload (or ignore if crisp data not present).
And from there it's a matter of UI/UX based on foreground/background/terminated app status.
It's a bunch of work, but practically mandatory for a well functioning chat SDK.
@astjohn Could you send an email to [email protected], I have a bunch of questions for you before we can implement this.