pusher / push-notifications-swift

Swift SDK for the Pusher Beams product:
https://www.pusher.com/beams
MIT License
34 stars 24 forks source link

Can't import PushNotifications into Objective-C #181

Closed Gen98 closed 1 year ago

Gen98 commented 2 years ago

Hi, I'm using Cordova to compile my web app into mobile app.

I have no problem using this framework before, but now I'm trying to integrate Pusher(Channels/Beams).

Following the Official Docs, I can't "import PushNotifications", I've tried with #import, @import but xCode says module not found image

This is my PodFile image In my workspace I can fin the pods installed by Carthage image And I have Added into "Link Binary..." section image

What am I missing? Thank you

benjamin-tang-pusher commented 2 years ago

Hi, we don't officially support Cordova, but with CocoaPods, you don't normally need to manually add a file to "Link Binary With Libraries" setting. For example my project has

Screenshot 2022-02-10 at 16 50 19

and

Screenshot 2022-02-10 at 16 50 57

I couldn't see the second one in your screenshot. Is that missing from your project? We also recommend pod 'PushNotifications', '~> 4.0.0'if possible.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thankyou.