🚀 Getting Started
Guide and instructions for setting up the Numberly SDK for React Native apps.
Requirements
- React Native >= 0.60.0
-
Android:
compileSdkVersion29minSdkVersion16+
-
iOS:
- Xcode 12+
Installation¶
yarn add react-native-numberly-sdk
npm i react-native-numberly-sdk --save
Setup¶
Android¶
-
Create the
numberly.propertiesfile in the application’sandroid/app/src/main/assets.app_key = the app key provided by numberly notification_icon_name = your icon name notification_icon_color = #00A6B6FF -
Add the
google-services.jsonfile to/android/app.
This guide assumes that you've already configured your android application to connect to Firebase. If this is not the case, please flow this instructions to do so.
iOS¶
-
Install needed pods
cd ios pod install -
Open the project
.xcworkspacein theiosfolder and create aNumberly.plistfile. Make sure that it's included to your application’s target.<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>app_key</key> <string>the app key provided by numberly</string> <key>automatic_notification_registration</key> <true/> </dict> </plist> -
Add the
Push Notificationcapability to your project by following this guide.