I did not get an answer for my question. So, should I open a support ticket?
I understand there is no web option for RevenueCat since the web PayWalls are not ready. However, I still don’t know what my solution is.
So far, I tried conditional import of RevenueCat and creating PayWall functions depending on if the device os is iOS or Android. None of them worked.
This leaves me only choice to open a git branch for web and uninstall RevenueCat completely for that branch. This is not a desired solution for me since I would have to maintain two branches then. I would like to know if this is my only option before I even think about this. So, I would be grateful if I could get an answer. Thanks..
Hi @yavuzakyazici apologies for the delay here. Could you share with me the SDK version you are using? And if you are using React Native, are you using the new architecture?
Hi @yavuzakyazici, apologies for the delay in response here. We have merged the fix here for this. Please upgrade to our most recent 8.9.2 SDK here and let me know if this is fixed on your end.
It is not very clear how to install the new package.
The link you posted leads to a source code. Then the ReadMe in the source code says to install react-native-purchases by executing terminal command “npx expo install react-native-purchases”. So I have "react-native-purchases": "^7.28.1", installed. Is the new SDK inside that package? Or are you suggesting we do make install from source code?
Since it has been a while, I have made my own close button. I had cancelled the “options={{ displayCloseButton: true }}” I don’t really need it. I just wanted to test and see.
BTW, I still cannot bundle expo web when RevenueCat code is inside. I put Platform.OS checks everywhere there was a PayWall but I always got react-native-purchases not linked error. I gave up and separated the web branch from git, So I can get it working. It only worked that way. It works now but it is not ideal for me to maintain two separate repos. I just wanted to let you know.
Hi @yavuzakyazici you can upgrade the React Native SDK via npm or yarn and will want to make sure to update your package.json dependencies with the new versions of react-native-purchases and react-native-purchases-ui. In regards to using React Native Web, at this time RevenueCat does not have support for this but it has been passed along as feedback. We only currently have support for React Native.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.