OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com
Other
251 stars 199 forks source link

[question]: Capacitor 6 support? #995

Closed fmp777 closed 5 months ago

fmp777 commented 6 months ago

How can we help?

Has this been updated to support Capacitor 6? [!] CocoaPods could not find compatible versions for pod "OneSignalXCFramework":

Code of Conduct

emawby commented 6 months ago

@fmp777 That error is related to cocoapods. Can you share the contents of your Podfile and the version of the SDK you are using?

webbpage commented 5 months ago

@fmp777 OneSignalXCFramework updates are separate from your npm plugin updates. This is my least favorite Capacitor plugin to update since it's rare I do not run into issues.

Try this to update your OneSignalXCFramework:

Screenshot 2024-05-29 at 7 40 23 AM

Your PodFile and PackageDependencies Rules could also limit your max version for OneSignalXCFramework so be mindful of that configuration.

Please report back if you have OneSignal working with Capacitor 6.0. I'll need to make this upgrade soon as well.

jennantilla commented 5 months ago

Hello @fmp777 and @webbpage. Just wanted to chime in here that this plugin works with Capacitor 6.

In our latest release, we included an example Ionic Capacitor example app that also uses Capacitor 6, so feel free to check that out!

You can also try running pod install --repo-update from your app's ios directory if you are having trouble updating cocoapods.

If you are still having issues, updating, let me know and I'll be happy to assist!