dev-family / react-native-wallet-manager Goto Github PK
View Code? Open in Web Editor NEWProvides some Apple Wallet functionality, like adding passes, removing passes and checking passises for existing.
License: MIT License
Provides some Apple Wallet functionality, like adding passes, removing passes and checking passises for existing.
License: MIT License
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!
Hi Team, could you please provide info how to generate pass url? Thanks.
I'm using Expo to make my app and we need to add Apple and Samsung Wallet.
Is this package available for expo apps?
I am always getting WalletManager.hasPass as false. Please help me to understand about pass identifier and pass serial number.
const addToAppleWallet = async () => {
// REF: https://www.nearform.com/insights/how-to-create-custom-apple-wallet-passes-with-react-native-and-fastify/
const data = {
name: userData?.shortName,
empId: userData?.username,
position: userData?.designation,
department: userData?.orgName,
profile: imagePath,
};
// Skip if the name is not set
if (!data?.name) return;
try {
const result = await WalletManager.hasPass(userData?.shortName);
console.log('hasPasshasPass', result);
setIsLoadingPass(true);
const pass = await fetch(Config.passkeyApiIos, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
const passBlob = await pass.blob();
const res = await WalletManager.addPassFromUrl(await blobToDataUrl(passBlob));
console.log('resresres', res);
setIsLoadingPass(false);
} catch (e) {
console.log(e);
setIsLoadingPass(false);
}
};
Does it work with Android and if not are there any future plans to add it?
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
Hello
Thanks for awesome package.
Is it possible to add a bank payment card using this package in order to use it in Apple Pay?
Hi,
We've got our backend which is set up able to generate the passes, however we need to have authentication in place to identify who the user is and if they have permission to download this pass.
The addPassFromUrl
method just provides a URL, however doesn't allow us to apply any headers, POST payloads, etc to authenticate.
How would you suggest we do this?
Thanks
do this lib support card provisioning? eg: credit cards
How to add a custom QR code to Android wallet ?
There is an error when building apk
node_modules/react-native-wallet-manager/android/build/intermediates/merged_res/release/values/values.xml:2718: AAPT: error: resource android:attr/lStar not found.
how to sort this out? Please help thanks
Im trying to pass locally downloaded .pkpass file path as a param; But its only accepting remoteUrls.
Is there any way that we can add the local path of .pkpass file like the way react-native-wallet is working.
It would be great if you add this
Thanks
With the addition of native expo modules and expo plugins, would it be possible to integrate those options so that there is no need to run expo run:ios
but expo start --ios
which lets you open it from the Expo Go app and does not require a precompile step.
Thanks for the help this package is awesome!
node_modules/react-native-wallet-manager/android/build/intermediates/merged_res/release/values/values.xml:2717: AAPT: error: resource android:attr/lStar not found.
how to I fix this?
Environment
"react": "18.2.0",
"react-native": "0.71.11",
"react-native-wallet-manager": "^0.0.2",
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
Hi! In old devices like iphone 7 you can remove apple wallet from device. In this case the aplication crashes when you try to add a pass to the wallet.
I try to use Linking.canOpenUrl('shoebox://') to know if device can open it, but if apple wallet is not installed this link opens directly the app store to download it...
Anyone knows some way to handle that case??
I am able to add the pass however hasPass always show false in TestFlight, viewPass and removePass(always show false) are not working but is working fine in development mode. Shall I need to perform any extra setup to make it run in live or in TestFlight?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.