SiriKit and CNContactStore

Can you really access your contacts database in the Siri extension?

I am trying to make an INSendPaymentIntent extension where the user can specify the person to whom he is trying to send money. This works very nicely on the simulator (Xcode 8.3.2, iOS 10.3), but when I run the same code on the device, Siri immediately stops working and says "Sorry, you need to continue in the app". The only console output I get is "The program ended with exit code 0". From what I can tell, Siri stops working after I try to instantiate CNContactStore ().

Has anyone successfully accessed the contact store on a real device in the Siri extension?

+3


source to share


1 answer


It turns out that the problem is not with CNContactStore. The "Program terminated with exit code: 0" error occurs if your extension is consuming too much memory, in which case the system simply terminates it. It seems like CNContactStore was the last straw that broke the camel back :)



+1


source







All Articles