Post

Replies

Boosts

Views

Activity

The Unwanted Communication Reporting extension sends response over the network connection only ONCE after installing. Is it a bug?
Hi, I just have seen an issue in my project that the Unwanted Communication Reporting extension sends response over the network connection only ONCE after installing. In the second try, after pressing the Done button, I don't see any request sent to my external server. To send response again, I have to re-install the app. But using SMS is still ok. Every time I press the Done button, the view used to compose SMS appears. This is my Info.plist to send response over network connection: <?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>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>ILClassificationExtensionNetworkReportDestination</key> <string>https://example.com/api</string> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.identitylookup.classification-ui</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).UnwantedCommunicationReportingExtension</string> </dict> </dict> </plist> The classificationResponse() function is still hit every time I press the Done button, but no request is sent to my external server, except the first try. This is my sample code used to confirm that behavior: // Provide a classification response for the classification request override func classificationResponse(for request:ILClassificationRequest) -> ILClassificationResponse { return ILClassificationResponse.init(action: .reportJunk) } In addition, the Message Filtering extension (in same app) is running as expected. I'm using: iOS 15 Xcode 13 Any comment is highly appreciated. Thanks.
11
1
3.5k
Feb ’22
Is it OK to force an extension exit?
Hi, Because of the reason which I mentioned here, I have an idea that when users enable the extension in Settings, exit(EXIT_SUCCESS) will be called if the current region is matched. A system alert will appear and the toggle won't be turned on. I understand reviewers can reject an application if it terminates on its own. But how about terminating an extension? Thanks!
0
0
416
Apr ’23