Skip to main content
Mobile SDK Changelog

React Native Push Provisioning v2.5.4

· One min read

Overview

Query from your app, whether a card is provisioned to a specific device (phone or watch)

Fix

The canAddCardToWallet 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 canAddCardToWallet 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.


React Native Push Provisioning v3.0.1.

· One min read

Overview

Query from your app, whether a card is provisioned to a specific device (phone or watch)

Fix

The canAddCardToWallet 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 canAddCardToWallet 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.

Other fixes

  • Fixes AddToWalletButton not initialising properly
  • Removes postinstall steps that failed build in consumers of the SDK

React Native Push Provisioning v3.0.0.

· 2 min read

Overview

This release performs two main changes:

  1. Provide support for React Native's new architecture
  2. Leverage Expo modules API to simplify maintenance

With these changes in place, it is recommended to use this version of the SDK with the following versions in place:

  • React Native ~0.79
  • Expo ~53
  • React ~19

Expo modules

If you are working on a bare React Native app, you'll need to follow the instructions from Expo on how to add Expo modules in a bare React Native App.

Please notice that the automatic approach to add support relies on your native code to match the code generated by React Native 0.79. If you have files that are not updated properly, it will fail to patch them and will require your manual intervention.

Changes

Breaking changes

addCardToWallet returns a dictionary with an optional error value, instead of a string that complicated identifying problems. If error is null, then it was successfully added.

Backwards compatible improvements

canAddCardToWallet now returns a type cardStatus, constraining the string values it can return, instead of just a string.

iOS installation - dependency introduced on iOS SDK

Added Cocoapods dependency that is hosted in a private repo.

  1. Add the following source command at the top of your podfile so the dependencies of the SDK can be located:

source 'https://gitlab.com/phyreapp/ios-specs.git'

  1. Add the following line to install the SDK:

pod 'WeavrPushProvisioning', :git => "https://#{ENV['GITHUB_TOKEN']}@github.com/weavr-io/push-provisioning-ios", :tag => 'x.y.z'

Note : replace “x.y.z” with target version number


React Native Push Provisioning v2.5.2

· One min read

Fixed

  • Fixed a collision with the secure components Cocoapods name.

    To ensure that this fix takes effect, delete the ios/Pods folder and ios/Podfile.lock file, and re-run pod install to get a fresh cocoapods setup.

  • Fixed an issue with the device type all not being correctly recognised in canAddCardToWallet. Also, the device selector no longer appears unnecessarily when there is only one device available (phone or watch) for the card to be provisioned to.

    Important

    When calling from the extension, canAddCardToWallet you MUST specify the device type.

    When calling from the app, canAddCardToWallet you MUST NOT it is recommended that you do not include the device type. This ensures that the response, which indicates whether you need to show the Add To Wallet button or not, is in accordance with Apple's requirements. In the scenario where both phone and watch are available and the user taps Add to Wallet, they are given the option to select the desired device in the flow provided by Apple.