Receive notification if an application is sent from the passage

It is possible to run the corresponding application from the passage inside the passbook .

Can I get a notification? Maybe in application:didFinishLaunchingWithOptions: with launchOptions including a pass?

+4
source share
2 answers

There is no information about receiving data indicating that the application was launched from PassBook. In fact, it seems that the application does not receive information about the savings book. Passbook skips apps with related App-Id`s. What you can do is check that if there is a pass you are looking for is in the library. You can read the documentation here: PassBook Documentation But keep in mind that the Passbook Development Guide states that your passbook pass must be application independent.

0
source

You can set pass appLaunchURL , which will be passed to related applications application:didFinishLaunchingWithOptions: and application:handleOpenURL: when the application starts from the pass (see Passport Package Referece Format - Related Application Keys )

In addition, starting with iOS 7.0, you can add additional information to pass userInfo , which can be accessed by an accessible application through PKPass localizedValueForFieldKey: (see Passbook programming library - Reading a passage )

0
source

Source: https://habr.com/ru/post/1447479/


All Articles