0

I am not able to intercept push notification via UNNotificationServiceExtension on iPhone 5 running on iOS 10.

The mutable-content flag is set as 1 inside the aps in payload. The same notification is getting intercepted in the extension for iPhone 6S.

Is Notification Service app extension not supported on iPhone5(because of 32-bit maybe)?

I have looked at the documentation and it is no where mentioned that it will work only on specific devices.

Asked the same question in Apple Developer forum as well.

6
  • Check your deployment target for the extension. it should be same for test device and deployment target. After altering the deployment target to 10.0 the UNNotificationServiceExtension instance called perfectly Aug 4, 2017 at 4:54
  • The same build is working on iPhone 6S. I dont think its an issue with deployment targets. Aug 4, 2017 at 4:58
  • 1
    May be your iPhone 6S device using 10.1 and match with your UNNotificationServiceExtension deployment target and iPhone 5 using lower version of deployment target. Aug 4, 2017 at 5:12
  • @NikhleshBagdiya, let me test it out. Aug 4, 2017 at 5:17
  • It's solve your issue Aug 4, 2017 at 6:46

1 Answer 1

2

Check your deployment target for the extension. it should be same for test device and deployment target. After altering the deployment target to 10.0 the UNNotificationServiceExtension instance called perfectly. May be your iPhone 6S device using 10.1 and match with your UNNotificationServiceExtension deployment target and iPhone 5 using lower version of deployment target. So will not work on iPhone 5.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.