Enable pushy for android only
Closed this issue · 3 comments
sohamad commented
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.
sohamad commented
Any solution for this?
pushy commented
Hi @sohamad,
Please follow these steps to unlink the Pushy RN SDK from your iOS project:
- Run the following command to unlink the
ios
native module from your project:
react-native unlink pushy-react-native
-
Edit the
ios/Podfile
file, remove any lines mentioningPushy
, and save the file. -
Run the following command to uninstall the Cocoapods dependency:
cd ios && rm -rf Podfile.lock && pod install
- Remove these two lines of code from your
ios/app/AppDelegate.m
file:
#import <PushyModule.h>
[PushyModule didFinishLaunchingWithOptions:launchOptions];
- 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.