GithubHelp home page GithubHelp logo

react-native-sample-1's Introduction

Description

This repository shows how the Vibes Push SDK can be integrated into a React Native application natively.

General Requirements

  1. You will need to obtain an application ID for your app from Vibes Customer Service. This will be referred to as yourAppId throughout this document.
  2. Everything you see in this repository is based on recommended behavour in the Vibes Push Notification SDK documentation available here.
  3. You will need to specify a url addressing our servers for different markets based on your target audience. This url is refferred to as yourApiUrl throughout this document. For the US market, the url is https://public-api.vibescm.com/mobile_apps. For the non-US market, the url is https://public-api.vibescmeurope.com/mobile_apps.

Requirements for iOS

  1. You will need to replace the yourAppId AND yourApiUrl in the ios/sampleReactNative/Info.plist with a previously obtained application ID and one of the server urls above.
  2. You will notice that the ios/Podfile file contains the reference to the Vibes SDK library for iOS. You may change the library version in this file.
  3. The rest of the code initializes and configures the environment to receive and display push notifications in an iOS environment. You are invited to copy and reuse as appropriate.

Requirements for Android

  1. You will need to replace the yourAppId AND yourApiUrl in the android/app/build.gradle with a previously obtained application ID and one of the server urls above. These are passed into the AndroidManifest.xml file to configure the SDK.
  2. You will notice that the android/app/build.gradle file contains the reference to the Vibes SDK library for Android (com.vibes.vibes:vibes:3.1.0). Also take not of the versions of other dependencies such as firebase-messaging and google-play-services. Those are important, and should reflect in your react-native app.
  3. You will need to provide your own google-services.json file, matching one generated for the specific applicationId in the Firebase console.
  4. The rest of the code initializes and configures the environment to receive and display push notifications in an Android environment. You are invited to copy and reuse as appropriate.

react-native-sample-1's People

Contributors

clemwek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.