Skip to content

OnetapInc/react-native-firebase-dynamic-links

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-firebase-dynamic-links

Getting started

$ npm install react-native-firebase-dynamic-links --save

Mostly automatic installation

$ react-native link react-native-firebase-dynamic-links

Setup

iOS

Setup the Xcode project to receive incoming firebase dynamic links visit the link https://firebase.google.com/docs/dynamic-links/ios/receive for setup

RNFirebaseDynamicLinks AppDelegate extension

FirebaseDynamicLinks implements an AppDelegate method application openURL and continueUserActivity. You must manually add this file to the same folder where your AppDelegate.m lives:

Expand the RNFirebaseDynamicLinks project and drag/drop the file RNFirebaseDynamicLinks+AppDelegate.m and place the file to exist in the same folder as your app's AppDelegate.m.

Android

Setup the Android project to receive incoming firebase dynamic links visit the link https://firebase.google.com/docs/dynamic-links/android/receive for setup

Adding dynamic link listener

Attach a listener for incoming firebase links. Add the below code in you MainActivity to receive incoming dynamic links

protected void onResume() {
    super.onResume();
    // Add firebase listener for dynamic links
    RNFirebaseDynamicLinksModule.attachDynamicLinkListener(this);
}

Usage

import RNFirebaseDynamicLinks from 'react-native-firebase-dynamic-links';

// Attach listener for incoming dynamic links
RNFirebaseDynamicLinks.addListener(this._handleLinkReceived);

_handleLinkReceived = (link) => {
  // Incoming deep link
}

// Remove the dynamic link listener
RNFirebaseDynamicLinks.removeListener();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 43.5%
  • Java 25.1%
  • JavaScript 18.0%
  • Python 8.0%
  • Ruby 5.4%