question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Something went wrong

See original GitHub issue

I have error on android: “Something went wrong. Couldn’t load your conversations”. Console gives:

Intercom React Native Error TypeError: IntercomWrapper.registerForPush is not a function
    at IntercomClient.js:221
    at tryCallTwo (core.js:45)
    at doResolve (core.js:200)
    at new Promise (core.js:66)
    at IntercomClient.js:220
    at tryCallOne (core.js:37)
    at core.js:123
    at JSTimers.js:98
    at Object.callTimer (JSTimersExecution.js:95)
    at Object.callImmediatesPass (JSTimersExecution.js:199)
    at Object.callImmediates (JSTimersExecution.js:214)
    at MessageQueue.js:222
    at guard (MessageQueue.js:46)
    at MessageQueue.__callImmediates (MessageQueue.js:222)
    at MessageQueue.js:109
    at guard (MessageQueue.js:46)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

9reactions
cauboycommented, Oct 9, 2017

I’ve the same problem on Android

Intercom React Native Error TypeError: IntercomWrapper.registerForPush is not a function
    at IntercomClient.js:221
    at tryCallTwo (core.js:45)
    at doResolve (core.js:200)
    at new Promise (core.js:66)
    at IntercomClient.js:220
    at tryCallOne (core.js:37)
    at core.js:123
    at JSTimers.js:262
    at _callTimer (JSTimers.js:143)
    at Object.callImmediatesPass (JSTimers.js:443)

On iOS everything works fine.

Having a look into the native code, registerForPush is defined within the iOS code but not within Android. Is it supposed to be like this?

Any other ideas what might be wrong?

Update: I’ve the feeling that it is supposed to be like this. registerForPush is only needed for iOS, so you might want to put it in a if clause:

if (Platform.OS === 'ios') {
   Intercom.registerForPush()
}

To make pushes work on Android I’ve had to call

Intercom.sendTokenToIntercom(deviceToken)

After I registered my device for pushes and received the deviceToken.

8reactions
andoni0305commented, Sep 6, 2017

Im having the same issue even with Intercom.registerIdentifiedUser already in use. Android simulator works just fine but when installed on a device and trying to open the chat window i just get the “Something went wrong. Couldn’t load your conversations” message. Don’t know what is wrong

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix "Something Went Wrong Try Again" Issue in ...
If you're getting the "Something went wrong. Try again" elusive error in the Google Play Store, here are some fixes you could try....
Read more >
"Something went wrong" error when you try to start an Office app
"Something went wrong" error when you try to start an Office app · Restart your device · Repair Office from the Control Panel...
Read more >
How to solve "Something went wrong" error code on Prime ...
How to solve "Something went wrong" error code on Prime Video · Restart the device on which you are watching Prime video. ·...
Read more >
[9 Ways] Fix Google Play Store “Something Went Wrong Try ...
[9 Ways] Fix Google Play Store “Something Went Wrong Try Again” · #1 Restart Google Play Store or Your Device · #2 Check...
Read more >
How to Fix “Sorry, Something Went Wrong Creating Your ...
Trying to create an Instagram account but getting Sorry, Something Went Wrong Creating Your Account? Here are some possible fixes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found