pushy/pushy-react-native

Enable pushy for android only

Closed this issue · 3 comments

I am getting errors in ios build so is there a way i can disable pushy from getting autolinked to ios. Since i am targeting android only as of now and pushy is working fine in android.

Any solution for this?

pushy commented

Hi @sohamad,
Please follow these steps to unlink the Pushy RN SDK from your iOS project:

  1. Run the following command to unlink the ios native module from your project:
react-native unlink pushy-react-native
  1. Edit the ios/Podfile file, remove any lines mentioning Pushy, and save the file.

  2. Run the following command to uninstall the Cocoapods dependency:

cd ios && rm -rf Podfile.lock && pod install
  1. Remove these two lines of code from your ios/app/AppDelegate.m file:
#import <PushyModule.h>
[PushyModule didFinishLaunchingWithOptions:launchOptions];
  1. Rebuild your project and check whether the build error is resolved. If not, please copy and paste the exact build error so we can debug further.
pushy commented

Closing the issue due to lack of response, feel free to reply if you still need help with this.