Open aniketgupta8960 opened 9 months ago
I'm facing the same issue that products are not fetching in macos app.
@UsamaDaood what is the version of react-native-iap version you were using.
Hi @aniketgupta8960 . I'm using "react-native-iap": "^12.10.8". And I'm facing the issue unsupported platform.
I need to implement the Subscription in macos app.
Have you added platform support in the podspec file . s.platforms = { :ios => "10.0" , :tvos => "10.0",:osx => "10.15"}
Where I supposed to add these support?
Do I need to add it in pod file? @aniketgupta8960
Have you implemented it successfully and is it working fine ? @aniketgupta8960
Have you added platform support in the podspec file . s.platforms = { :ios => "10.0" , :tvos => "10.0",:osx => "10.15"}
@aniketgupta8960 My PodFile
require_relative '../node_modules/react-native-macos/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
prepare_react_native_project!
target 'ChatBee-macOS' do platform :macos, '10.15' use_native_modules!
flags = get_default_flags()
use_react_native!( :path => '../node_modules/react-native-macos', :hermes_enabled => false, :fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1',
:flipper_configuration => FlipperConfiguration.disabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end
Do I need to add it in pod file? @aniketgupta8960
I have added in podspec file inside node_module/react-native-iap/react-native-iap.podspec file the platform support then go the error shown above and It is not working at my end also
Okay I got it. By the way, are you successful to implement iap ? Let me check that.
Thanks you very much. @aniketgupta8960
@UsamaDaood Any update?
no Bro. @aniketgupta8960 . Have you any Luck Bro?
Hi @JJMoon, @andresesfm Any update
@JJMoon @andresesfm . Guys Any update on that.
@arthurgeron @hyochan Please help me as I need it to add in my macos application
I am working on a react native macos wand I need to have in-app purchase in the macos Application but after adding macos platform in podspec file it is giving error. the podspec file change is : s.platforms = { :ios => "10.0" , :tvos => "10.0",:osx => "10.15"} and the error I am facing is