Skip to content

React Native wrapper for the Zettle iOS and Android SDKs (WIP)

License

Notifications You must be signed in to change notification settings

johkade/react-native-verzettled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-verzettled

Wrapper module for iZettleSDK for iOS and Android. (WIP)

💡 NOTE: Android is currently unsupported and will be added later, iOS is WIP. 💡 NOTE: Currently there's no support for expo / eas, as there's no config plugin yet.

Installation

npm install react-native-verzettled
cd ios && pod install

Setup

iOS Deployment target

Set your iOS Deployment Target to >13.0 in XCode

Info.plist

Add the following to your Info.plist.

<key>NSBluetoothAlwaysUsageDescription</key>
<string>Our app uses bluetooth to find, connect and transfer data with Zettle card reader devices.</string>

<key>NSBluetoothPeripheralUsageDescription</key>
<string>Our app uses bluetooth to find, connect and transfer data with Zettle card reader devices.</string>

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>myAppScheme</string>
        </array>
    </dict>
</array>
<key>UISupportedExternalAccessoryProtocols</key>
 <array>
     <string>com.izettle.cardreader-one</string>
 </array>
 <key>NSLocationWhenInUseUsageDescription</key>
<string>You need to allow this to be able to accept card payments</string>

Add Background capabilities:

Select the following background modes to enable support for external accessory communication. You can find them in XCode under Signing & Capabilities in your target.

External accessory communication Uses Bluetooth LE accessory

Usage

Check out the example project.

Contributing

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

License

MIT


Made with create-react-native-library

About

React Native wrapper for the Zettle iOS and Android SDKs (WIP)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published