Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: Errror missing push capabilities #129

Open
1 task done
pgmritalia opened this issue Dec 4, 2024 · 1 comment
Open
1 task done

[question]: Errror missing push capabilities #129

pgmritalia opened this issue Dec 4, 2024 · 1 comment

Comments

@pgmritalia
Copy link

How can we help?

I'm using OneSignal SDK fot .NET MAUI and i got this error:
ERROR: ERROR! 'Push Notifications' capability missing! Add the capability in Xcode under 'Target' -> '<MyAppName(MainTarget)>' -> 'Signing & Capabilities' then click the '+ Capability' button.

I don't use Xcode i currently use Visual Studio 2022 and i can't specify any capabilities
The only capability i use is in info.plist > background mode > remote notificiation

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bnoffer
Copy link

bnoffer commented Jan 15, 2025

You have to add the Push capability to your App in the Apple Developer Console under Certificates, Profiles etc. and then you have to add the capability to your Entitlements.plist. If an Entitlements.plist does not exist you have to create it.

It should have the following contents at minimum for Push to work:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>aps-environment</key>
	<string>production</string>
</dict>
</plist>

If you are targeting Apples Development Environment for Push you have to change production to development.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants