iOS Push Provisioning v1.2.3
Overview
iOS Patch version to update one of our dependencies to include stability fixes.
Changes
- Swift Package Manager now uses Phyre
from:5.0.3. - Cocoapods now uses Phyre
~> 5.0.3.
iOS Patch version to update one of our dependencies to include stability fixes.
from:5.0.3.~> 5.0.3.Query from your app, whether a card is provisioned to a specific device (phone or watch)
The WPPComponents.getCardStatusInWallet has been updated; so that when called from your app, if deviceType is specified as either phone or watch, the result returns whether the card is provisioned to that specific device.
Previously it was advised that "when calling from the app via getCardStatusInWallet you must not include the device type." This approach is now a recommendation rather than mandatory, since deviceType can be used from the app if your specific use-case requires it.
source 'https://gitlab.com/phyreapp/ios-specs.git'
pod 'WeavrPushProvisioning', :git => "https://#{ENV['GITHUB_TOKEN']}@github.com/weavr-io/push-provisioning-ios", :tag => '1.2.2'
Query from your app, whether a card is provisioned to a specific device (phone or watch)
The WPPComponents.getCardStatusInWallet has been updated; so that when called from your app, if deviceType is specified as either phone or watch, the result returns whether the card is provisioned to that specific device.
Previously it was advised that "when calling from the app via getCardStatusInWallet you must not include the device type." This approach is now a recommendation rather than mandatory, since deviceType can be used from the app if your specific use-case requires it.
source 'https://gitlab.com/phyreapp/ios-specs.git'
pod 'WeavrPushProvisioning', :git => "https://#{ENV['GITHUB_TOKEN']}@github.com/weavr-io/push-provisioning-ios", :tag => '1.2.1'
The SDK exposes a new method WPPComponents.getCardStatusInWallet(forCardWithLastFourDigits:, deviceType:) that can be used to check the status of a given card within the Apple Pay wallet of the device.
It takes the following as arguments: a String representing the last four digits of the payment card number and a DeviceType that specifies which device the state should be checked against since it is possible to have a card provisioned in your iPhone, but not in your Apple Watch.
The DeviceType enumeration supports the following values:
phone - The card state query is performed on the device being usedwatch - The card state query is performed on the user's Apple WatchIf the DeviceType is left empty, the card state query is performed on both the phone and the watch. The result is notAdded if either the watch or the phone has this state, regardless of the other device.
canAddCardToWallet is deprecated in favour of getCardStatusInWalletgetCardStatusInWallet you MUST specify the device type.getCardStatusInWallet Swift Package Manager.
The issue encountered when attempting to distribute the code via Swift Package Manager in v1.1.0 has been fixed. The compiled SDK includes a Package.swift file, enabling users to automatically download and install it via Swift Package Manager.
CocoaPods continues to be supported and is unaffected.
To install the Weavr Push Provisioning iOS SDK using Swift Package Manager (SPM) you will need to:
<TOKEN> with the token we provided you.
https://user:<TOKEN>@github.com/weavr-io/push-provisioning-ios
Up to next major version dependency rule.