Closed AndrewGDX closed 1 month ago
hello,
it looks like you are missing Push Notification
entitlement. if you run for device -- you should have it enabled in your provisioning profile.
in case you are running on simulator it has to be enabled added to Entitlement.plist
<?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>development</string>
</dict>
</plist>
if you use entitlement plist, make sure it is configured in robovm.xml
:
entitlements.plist
Thank you very much, it's working perfectly now!
Just to keep all this documented, I want to point out the steps I took to make this happen.
xcframework
files from official repoios-arm64_x86_64-simulator
builds for testing and ios-arm64
for release) to libs
folder in LibGDX projectiphoneos
you need to use frameworks from ios-arm64
folder, and for iphonesimulator
you use ios-arm64_x86_64-simulator
frameworksOneSignalNotificationServiceExtension.appex
file to libs
folder in your LibGDX projectrobovm.xml
, info.plist.xml
, and IOSLauncher.java
files like I mention aboveEntitlement.plist
file and mention it in robovm.xml
entitlements.plist
in robovm.xml
These steps should be mentioned somewhere in the official samples, because all previous info about the process is very out of date and it took a long time for me to figure everything out.
hi @AndrewGDX thanks for confirming things are still working, hadn't been using this pod since 2018 ) will add link to this comment to pods readme file during next update. thx
Hello! I have a problem with adding push notifications via OneSignal API to an iOS RoboVM LibGDX Project.
I tried this old manual and I managed to make build working with OneSignal v5.2.4. On launch I get Notifications permission request in iOS Simulator, but notifications are not working and I got 'Push Notifications capability missing' error. Do I need to add this capability to info.plist file somehow? I searched everywhere but there's no info about this.
Here is the full log:
I have following folders in 'libs':
my robovm.xml file:
and I added this to my info.plist.xml:
code in IOSLauncher.java:
Do you have any ideas @dkimitsa? Thanks in advance.