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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[question]: Capacitor 6 support?

fmp777 opened this issue · comments

How can we help?

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

Code of Conduct

  • I agree to follow this project's Code of Conduct

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

@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.

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!