pkhien95 / react-native-caller-id

React Native Caller ID module
MIT License
2 stars 9 forks source link

Can't get the module to work #2

Open pavlo-o-savchuk opened 3 years ago

pavlo-o-savchuk commented 3 years ago

Hi, did anyone make this thing work as described?

  1. I followed instructions, created a package. With this, I cannot build the project. Mainly because of the outdated react version and Gradle.
  2. I forked the module removing the peerDependency for an old react. I linked it and build it sucessfully. However, it still does not work properly.

Has anyone have successfully applied this package and got in working?

zoobibackups commented 1 year ago

any solution for this

pavlo-o-savchuk commented 1 year ago

@zoobibackups I decided to take a completely different approach. I have never could make it work.

tindery commented 10 months ago

@pavlo-o-savchuk what approach did you decide to take?

pavlo-o-savchuk commented 10 months ago

@tindery Adam, I could not make it work even after I contacted the owner of the repo. The problem is not in his code, but in IOS that makes updates in it's API. So I ended up creating my own react native module for this purpose. I adjusted some functions from this code to build a the same functionality and it worked. There is a quite a setup along. However, I have not created the plugin. My company closed and all the work stopped. For Android I never looked for the solution.

What I suggest you to do: 1) check the methods the author is using there in his module and go read about those methods in Apple API documentation. 2) Build your own Native Module for react native, and try to call functions from CallDirectory API. Remember, after you change the Native Module in Xcode, you have to rebuild the native module to see your changes, otherwise Xcode will always use the previously compiled version or the module you created. It took me a lot of time to figure out.

tindery commented 10 months ago

@pavlo-o-savchuk thank you for your reply. I assumed this would be the case, but I wanted to avoid having to write my own native module. Since I did not find any other available package, this seems like the only way to go :/ Thank you for your suggestions, I'll keep them in mind.