-
Notifications
You must be signed in to change notification settings - Fork 39
Intercom v6 for iOS 17 needed #72
Comments
Unfortunately versions 6.+ are not working with this config plugin. On android, the key values are not set. On iOS the Intercom presentMessageComposer seems to not work, displaying:
As mentioned, this update is super important as it is adding support for android 14 /compileSdkVersion 34 and especially iOS 17! We also have some crashlytic reports for ios 17 devices using "config-plugin-react-native-intercom": "^1.10.1" and "@intercom/[email protected]" |
to be honest we use our own internal config plugin because we didn't need all the stuff this one does and we wanted to be in control when we need to update. |
Yeah that might be the best solution, but it would also makes sense to have a maintained project ideally as an official expo config plugin, since react native intercom is quite an important sdk! |
Anything you can share, or quick pointers to how to achieve a minimal solution for this? I'm in the same boat and have crashes with intercom 4.0.1 on iOS with Expo SDK 49. |
if that can help anyone currently on |
Thanks @wcastand - I was able to create a new iOS development build using that gist and it seems to have stopped the crash, however the Android development build is now failing on EAS - something I don't understand in
I need to investigate further, but did you experience anything like this? |
Hmm sorry don't remember having an issue on that, maybe you need to upgrade min version to 34 or something like that but honestly don't remember this error |
Thanks...think this was a case of me not reading the Intercom release docs properly. I'm experimenting with |
Hi @wcastand , Does your custom plugin supports push notifications and EU region ? |
Just as update on this part of the thread - I have used a "local" config plugin using the gist above, but I couldn't find a way to make things work with So, I'm currently running
The key seems to be the call to All very irritating to be honest - it would be nice to have a clean way to use 6.x.x on Expo. |
Thanks for the infos. Can you tell me if the gust provided by @wcastand does support Push Notifications ? |
Just re-reading the original post in this thread (it which wasn't the reason I came across it). Does this mean that the 5.3.1 Intercom libraries do NOT support iOS 17?! Do you know if these cause hard app crashes, or just Sentry errors (the latter could probably be lived with if there is no other bad outcome). |
I can confirm we are using 5.3.1 with this plugin (the one from @cmaycumber ) and it works for iOS 17. But we have Sentry / Crashlytics errors, meaning crashes that appear on iOS 17, which lead to believe we have to update to the latest 6.2.0 to avoid those. Example crash on 17.0.3:
|
Which plugin are you talking about @GabrielDierks ? The one from the repo or the one from @wcastand ? |
Sorry Intercom push notifications still on our backlog, so we haven't tried that yet. |
This one from @cmaycumber |
Hmm, these certainly look like the same messages as the hard app crashed on 5.3.1 (without the work-around function sequence I posted in #72 (comment) |
Are you able to give us a complete view of your setup, things such as:
|
No as I mentioned we do have hard app crashes and this was one example of a crash. But for most of our customers on iOS 17 it works fine and we could not reproduce why these crashes appear apart from not having updated the react-native-intercom package. |
Ah ok - sorry, misunderstood you! So, it sounds like you're in the same boat as me. You might want to try the work-around sequence of calls I posted above - so far this has avoided the crashes on iOS, although I need to check for explicit testing on iOS 17. It does however produce other non-fatal crashes, which seem to be exclusively on Android. |
Sure:
on refresh token:
|
Seems like adding a logout prior to the hash could improve our experience 😎 |
Possibly, although my suspicion is that there is race condition in the underlying libs - we get the crashes when calling logout first. One issue is there is no way (that I know of at least) to know what the state is in the lib - i.e. you can't ask "is there already a user", and if so call logout. We had to try and design the code so we definitively knew whether there is already a user, hence the sequence I posted - first force an unidentified user (so we know we have one), then logout, then login the real (Identified) user. |
Does a patch package on this plugin would be enough ? So we just update the version of intercom to v6 ? Or do we need to make other changes in the config plugin to make it work ? |
As I stated at the beginning, changing the version to 6.0.0+ breaks opening the messenger using this plugin. |
On my side, I have a big issue, everytime I'm launching my app on android (v31) I'm experiencing this message and a crash : Did you manage to solve it ? It's driving me nuts |
I feel like I've seen that at some point when going through the pain of upgrading the intercom libsraries..this could way off, but I seem to recall there were some changes in the naming of event listeners at some point that I had to tweak. e.g. if you add an event listener to handle a change in the number of unread messages:
I think it was the exact string being passed that was different - I can see in commit history I previously had to switch on platform between:
Hope it helps! |
I'm not using it :/ I think it's related to the v5 version because I'm using a v31 Android. It only works if I remove all imports of Intercom. What a mess really ... How such a company can have such a poor support on mobile integration :( |
I've put a PR in expo/config-plugins . The solution is based on @wcastand gist and extended to support regions. |
https://github.com/intercom/intercom-react-native/releases/tag/6.0.0
update v6 is necessary for iOS17, getting crashes on sentry for iOS 17 users.
The text was updated successfully, but these errors were encountered: