-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error handling and refactor native modules to use Promises (#265)
* Remove IntercomIntentService and reference from README in favor of deprecating GCM notifications * Remove GCM reference * Adds error handling when calling Intercom.client(), without this the module will crash the Main app if Intercom hasn't been initialized * sendTokenToIntercom error handling * Add support for initializing Intercom from javascript * Refactor Android module from using Callbacks to Promises * Refactor iOS module from using Callbacks to use Promises * Modify IntercomClient js to expect promises from native modules * Add initializeIntercom to ts * Remove initializeIntercom * Add example for existing FCM setup to README
- Loading branch information
1 parent
3402a6c
commit 735d4bb
Showing
6 changed files
with
298 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
android/src/main/java/com/robinpowered/react/Intercom/IntercomIntentService.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.