-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
[1.x] Unsupported Apple Server Notification URL #261
Comments
As you already know this kind of issue requires some debugging. I'm always happy to help, but I may ask you some basic questions or even ask trying some fool-proof steps to make sure we are on the same page. Please bear with me. From your issue description, I can say that you know every detail about the documentation provided by LIAP, but anyway I'm going to mention the upgrade guide. For now, let's make sure your server is receiving the test notifications from Apple. You can add a dummy endpoint that receives the notifications and log them. (Without redirecting to LIAP handler). If the server is receiving the notifications, so the problem is in LIAP. Otherwise, the problem is related to Apple. -- EDIT -- One more thing, test notifications require using notifications v2. |
Hey @imdhemy, happy to help. Thought I'd raise an issue now incase others are having the same problem so they see that it's currently being investigated. Sorry if I wasn't clear enough in the original ticket, here's some further information which should help.
-- Scenario 1
-- Scenario 2
-- Scenario 3
-- Scenario 4
-- Scenario 5
-- Scenario 6
-- I still haven't heard back from Apple DTS, but it seems that Apple only takes the domain from the url you provide, and adds a fixed path to the end ( Edit: copy and extra scenario. |
I believe this is related to Apple as they are sending the notifications to the old URL from LIAP If you are asking for a dynamic URL, you still can add your own route and use the same controller. Don't worry, you are not going to lose any functionality. In use Imdhemy\Purchases\Http\Controllers\ServerNotificationController;
Route::post('/purchases/subscriptions/apple', ServerNotificationController::class)->name('liap.serverNotifications'); Don't forget to add your custom middleware. I'm closing this issue for now, please feel free to reopen it if required. |
Liap version(s) affected
1.x
Description
We were using the
0.10.3
version of the library, and recently upgraded to1.6.1
in December 2022. Since then, LIAP has stopped handling events from the Apple Server Notifications. After some investigation, it seems that the generated LIAP endpoint is no longer supported by Apple.How to reproduce
1.x
)/liap/notifications?provider=app-store
.https://<your-site>/liap/notifications?provider=app-store
)access.log
file to see incoming requestsphp artisan liap:apple:test-notification --sandbox
access.log
entry is not/liap/notifications*
. For example:Possible Solution
I'm not sure where the problem lies - whether it's an issue within LIAP, or it's an issue with Apple and their poor documentation. I have submitted a TSI with Apple and am happy to share the results.
A possible fix could be to have a dynamic url based on the
routing
config. As a temporary fix for testing, I'm simply passing anything from/purchases/subscriptions/apple
through to/liap/notifications?provider=app-store
.Additional Context
Example of an entry within
access.log
when the Sandbox Server URL is set tohttps://<your-site>/liap/notifications?provider=app-store
The text was updated successfully, but these errors were encountered: