How do you test the Push Notification feedback service?

前端 未结 3 478
长发绾君心
长发绾君心 2021-02-04 09:56

How would you test the APNS feedback service in the sandbox? Or in other words, how do you force a device to be in the feedback?

3条回答
  •  天涯浪人
    2021-02-04 10:47

    I think that from the initial round of question "Yes bu how do you get something to show up there? " actually came from the fact that, his tests were not returning any device, i.e., even though he may have had notifications successfully sent to the iPhone/iPad, whenever he queries the FB server, nothing came back, precisely because the app was never removed from the device, therefore the server is just as happy to keep answering "0 devices found" (for example) because no device failed to receive notifications.

    So, when the app is removed from the device, only then, the notification server will provide a feedback, i.e., it will finally answer with the list of devices that removed the app.

    The idea of the local server is pretty good too.

    -Alex

    ==============

    Here is a nasty side effect on Apple's suggestion to keep at least one push enable app. Here's my suggestion to the document posted on the thread:

    On the "Issues with the feedback server", it's interesting to note two scenarios: 1) the app is deployed to a real device, on a production mode; 2) the app is deployed to a development device, to the sandbox;

    In the 1) the hint to leave one last app (I expect it to be) correct and should work as described; no issues here.

    On the 2), one has to make sure the last app is also a development app. Or in other words, to make things simpler, have a second "sandbox app" that is only there to do press the "last man switch".

    The issue I'm having is that once I remove my development app, nothing happens on the sandbox feedback server, even though there are other push-enabled apps on the device, however they are all production apps, therefore, they would "report" (if you can say so) to the production feedback server.

    The second copy of your app, (a sandbox app) is what we want to have, so it can keep that persistent connection to the sandbox server... then when you remove your "app under test" your sandbox app will hopefully, report to the sandbox and you can do your actual test.

    Hoping this is correct ... will test tonite.

提交回复
热议问题