0

Is it possible to receive PKPassLibraryDidChangeNotification when my app is in background?

For instance, if my coupon rewards changes(by scanning the QR code) my app has to update its database with the changed reward even if it is in background. I think its possible, if some thread is listening to PKPassLibraryDidChangeNotification forever in the background but apple doesn't encourage to run a task in background forever.

So any other alternate suggestions to achieve this?

Minisha
  • 2,117
  • 2
  • 25
  • 56
  • Could you not push an update directly to the app at the same time you're pushing an update to the card? – Tomas McGuinness Jan 10 '14 at 16:54
  • When you scan the QR code it will take to the update URL of the coupon which is embedded automatically by Passkit, so i don't have control over that update URL. So thats not possible i guess. Correct me if i am wrong – Minisha Jan 10 '14 at 17:33
  • I don't understand. What is scanning the QR code? – Tomas McGuinness Jan 11 '14 at 15:27
  • The update to the coupon is done by passkit automatically and it will push the notification to passbook. So I don't have control over that push notification, its done automatically. Thats wat I am trying to say. – Minisha Jan 11 '14 at 23:52

0 Answers0