Provides some Apple Wallet functionality, like adding passes, removing passes and checking passises for existing.

Overview

react-native-wallet-manager

Provides some Apple Wallet's functionality, like adding passes, removing passes and checking passises for existing.

npm version npm MIT
Platform - Android Platform - iOS

Installation

yarn add react-native-wallet-manager

or

npm install react-native-wallet-manager

iOS installation

Add Wallet module to capabilities in Xcode.

Don't forget to run pod install!

Usage

Adding pass to wallet by url

import WalletManager from 'react-native-wallet-manager';

// ...

try {
  const result = await WalletManager.addPassFromUrl(
    'https://github.com/dev-family/react-native-wallet-manager/blob/main/example/resources/test.pkpass?raw=true'
  );
  console.log(result);
  // true
} catch (e) {
  console.log(e);
}

Checking for pass exists (iOS only)

try {
  const result = await WalletManager.hasPass(
    'pass.family.dev.stage.beerpoint-master',
    'serial-xxx'
  );
  console.log(result);
} catch (e) {
  console.log(e);
}

First argument is pass identifier. You can pass second argument (optional) to specify pass serial number.

Removing pass (iOS only)

try {
  const result = await WalletManager.removePass(
    'pass.family.dev.stage.beerpoint-master',
    'serial-xxx'
  );
  console.log(result);
} catch (e) {
  console.log(e);
}

First argument is pass identifier. You can pass second argument (optional) to specify pass serial number.

Project inspired by react-native-wallet

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

You might also like...

Hi, Spring fans! In this installment, we're going to look at some the C in M-V-C and their representation in Spring's `@Controller` types!

@Controllers Hi, Spring fans! In this installment, we're going to look at some the C in M-V-C and their representation in Spring's @Controller types!

Nov 19, 2022

QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties

QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties

QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties quickperf.io 📙 Documentation Annotations

Dec 15, 2022

A proof-of-concept Android application to detect and defeat some of the Cellebrite UFED forensic toolkit extraction techniques.

LockUp An Android-based Cellebrite UFED self-defense application LockUp is an Android application that will monitor the device for signs for attempts

Dec 4, 2022

Some DMOJ solutions mostly in Java and C++

Select DMOJ Solutions Select DMOJ solutions mostly in Java and C++ Most of these solutions are for 5 and 7 point problems There are also a lot of CCC

Oct 4, 2022

"Some" Utilities you can use for your Java projects "freely"! Files are compiled with Java-8 and above, but mostly Java-11.

✨ Java-SomeUtils 🚀 "Some" Utilities you can use for your Java projects "freely"! *"Freely"* forcing you to include the license into your program. Fil

Jan 6, 2023

The state-of-the-art Dashboard of Apache RoccketMQ provides excellent monitoring capability. Various graphs and statistics of events, performance and system information of clients and application is evidently made available to the user.

RocketMQ Dashboard How To Install With Docker get docker image mvn clean package -Dmaven.test.skip=true docker:build or docker pull apacherocketmq/ro

Dec 30, 2022

Some tools to help mitigating Apache Log4j 2 CVE-2021-44228

JndiLookup Some tool to help analyzing Apache Log4j 2 CVE-2021-44228 This tool uses the "lookup" feature from log4j-2 to test against the JNDI vulnera

Dec 18, 2021

Some anti afk bot which prevents you from getting punished for going afk in games. Way of stopping the bot is slightly flawed but we'll ignore that.

Some anti afk bot which prevents you from getting punished for going afk in games. Way of stopping the bot is slightly flawed but we'll ignore that.

AntiAFK Some anti afk bot which prevents you from getting punished for going afk in games. Gui mode coming soon... Installation Install Java 17. Downl

Jan 13, 2022

Very briefly capturing some of new/ update in API that were introduced after Java 8 that may come handy for dev folks while programming

Very briefly capturing some of new/ update in API that were introduced after Java 8 that may come handy for dev folks while programming. Also have created tests demonstrating those APIs and playaround with it.

Jan 24, 2022
Comments
  • NFC Features

    NFC Features

    Hello there 👋 Thanks for your hard work!

    I'd like to know if I can use the NFC feature on the Apple Wallet when I add the pass to it.

    For instance, can I add an access key to unlock a smart lock?

    Thanks!

    opened by cfontana0 0
  • hasPass and removePass return false (but pass already exists in Wallet)

    hasPass and removePass return false (but pass already exists in Wallet)

    Hi, hasPass and removePass don't seem to be working. They always return false. Have tried using my own pkpass as well the pkpasses in https://github.com/dev-family/react-native-wallet-manager/tree/main/example/resources/SamplePasses. Tried with and without serial number. Both funcs always return false no matter what. Any idea? Thank you

    opened by khlor 3
Releases(0.0.2)
Owner
dev.family
We develop complex services and solutions for startups
dev.family
An API Library that provides the functionality to access, manage and store device topologies found in JSON files using Java and Maven Framework

Topology API ?? About An API library which provides the functionality to access, manage and store device topologies. ?? Description Read a topology fr

Abdelrahman Hamdy 2 Aug 4, 2022
An assistance platform made using Spring framework that analyses your code, and helps you either to start a devops project, or to turn an existing project into a devops project using open source software (Git, Docker, Jenkins..)

DevOpsify Description An assistance platform made using Spring framework that analyses your code, and helps you either to start a devops project, or t

obaydah bouifadene 14 Nov 8, 2022
Simple and lightweight application which is checking status of your web services and send a notification if it is down.

rose-uptimer Simple and lightweight application which is checking status of your web services and send a notification if it is down. Example configura

RoseSapphire 3 Sep 25, 2022
NoChatLag fixes lagspikes caused by chat by removing the sender UUID from the chat packet. Please note that this breaks the vanilla client side block list.

NoChatLagServer Fabric Version | Forge Version Downloads: SpigotMC | GitHub Releases NoChatLagServer fixes WEB-5587 by setting the sender-uuid to that

Noah van der Aa 3 Jan 10, 2022
A small mod to improve support for architectures and libraries officially unsupported by Minecraft. Mainly targeting Apple Macs using arm processors.

fabric-loom-native-support A small mod to improve support for architectures and libraries officially unsupported by Minecraft. Mainly targeting Apple

FabricMC 5 Oct 17, 2022
An extension for Keycloak, that enables web-based sign in with Apple and token exchange

Apple Identity Provider for Keycloak ?? This repository represents an extension for Keycloak, which enables Sign in with Apple for web-based applicati

Klaus Betz 58 Dec 29, 2022
Some recent questions asked in interviews of companies like Google, TCS, Amazon etc.

Some recent questions asked in interviews of companies like Google, TCS, Amazon etc.

Ashish Kumar 19 Nov 21, 2022
Blazed Café is a library for BlazeOS that enables and improves Java functionality for the IgniteBook platform.

By: Seanpm2001, Et; Al. Top README.md Read this article in a different language Sorted by: A-Z Sorting options unavailable ( af Afrikaans Afrikaans |

Sean P. Myrick V19.1.7.2 2 Sep 5, 2022
A Minecraft Fabric client-side mod adding ambient and environmental interaction effects to enhance immersion.

Effective Effective is a client-side Fabric mod that adds various visual and auditory effects lacking in Vanilla Minecraft to improve overall ambience

Ladysnake 114 Dec 21, 2022
A React Native project starter with Typescript, a theme provider with hook to easy styling component, a folder architecture ready and some configs to keep a codebase clean.

React Native Boilerplate Folder structure : src ├── assets │   ├── audios │   ├── fonts │   ├── icons │   └── images ├── components │   ├── Layout.tsx

LazyRabbit 23 Sep 1, 2022