crisp-sdk-ios icon indicating copy to clipboard operation
crisp-sdk-ios copied to clipboard

Notifications

Open csacsi opened this issue 5 years ago • 17 comments
trafficstars

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?

csacsi avatar Nov 26 '19 08:11 csacsi

@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.

JMCPH avatar Oct 13 '20 08:10 JMCPH

We are going to offer an integration with OneSignal

baptistejamin avatar Oct 13 '20 12:10 baptistejamin

Sounds great, when can we expect this to be released?

JMCPH avatar Oct 13 '20 13:10 JMCPH

@baptistejamin when can we expect this to be released?

JMCPH avatar Oct 21 '20 12:10 JMCPH

@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.

astjohn avatar Aug 17 '23 16:08 astjohn

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.

baptistejamin avatar Aug 17 '23 18:08 baptistejamin

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.

vikalp avatar Jul 08 '24 09:07 vikalp

@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.

  1. the user send you a message
  2. you answer
  3. the use never sees your message since their are no push notification or badges.
  4. all support done on iOS is unless Please fix 🙏

lionel-alves avatar Jul 16 '24 13:07 lionel-alves

It's something we are highly considering, however it means connecting to APNS or FCM.

You guys are using APNS? FCM?

baptistejamin avatar Jul 16 '24 13:07 baptistejamin

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.

lionel-alves avatar Jul 16 '24 15:07 lionel-alves

If you have an Android App it will be the way anyway...

baptistejamin avatar Jul 16 '24 15:07 baptistejamin

For Android Intercom asks for the Admin SDK private key, but not for iOS where they use APNS directly. Any ETA on this?

lionel-alves avatar Jul 16 '24 15:07 lionel-alves

@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 avatar Jul 19 '24 15:07 astjohn

@astjohn Could you send an email to [email protected], I have a bunch of questions for you before we can implement this.

baptistejamin avatar Jul 19 '24 16:07 baptistejamin