I'm developing an app that needs to monitor user location and, due to some feature, I need to send a Location Push Notification to send the device location to the server.
This is everything I did, following the apple doccumentation:
- I requested (and obtained) the com.apple.developer.location.push entitlement to Apple and I included it in the app.
- I created the proper certificates and added the proper signing capabilities to the app.
- I created a Location Push Service Extension in my app.
- I asked the user a token with startMonitoringLocationPushes and I sent it to the server.
- I established a Token-Based Connection to APNs and I sent the notification request.
After several attempts, everything now seems to work fine, as I receive a status 200 from APNS and no error messages, but the app doesn't receive the notification, or the extensions doesn't get "awakened/fired".
How can I understand what's wrong?
I'm pretty sure that all the procedure is correct because I don't receive any errors like TokenNotForPurpose, BadToken, or else... I had these errors at first attempts but now I get status 200...
I hope someone coulp help me, I'm going crazy trying to solve this and my customer waiting is going nervous waiting for the app to be released