markdown React Native和FIrebase动态链接

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown React Native和FIrebase动态链接相关的知识,希望对你有一定的参考价值。

## Receiving Dynamic Link
https://firebase.google.com/docs/dynamic-links/android/receive

Modify from yoursite.example.com to your own dynamic link like example.page.link

```
<intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="yoursite.example.com" android:scheme="http"/>
    <data android:host="yoursite.example.com" android:scheme="https"/>
</intent-filter>
```


## Throwing mail with action
https://firebase.google.com/docs/auth/web/passing-state-in-email-actions

Modify from com.example.android to your own package name


```
var actionCodeSettings = {
  url: 'https://www.example.com/?email=' + firebase.auth().currentUser.email,
  iOS: {
    bundleId: 'com.example.ios'
  },
  android: {
    packageName: 'com.example.android',
    installApp: true,
    minimumVersion: '12'
  },
  handleCodeInApp: true
};
firebase.auth().currentUser.sendEmailVerification(actionCodeSettings)
  .then(function() {
    // Verification email sent.
  })
  .catch(function(error) {
    // Error occurred. Inspect error.code.
  });

```

## Need to put google-services.json which you can download from console on andoid/app directory

以上是关于markdown React Native和FIrebase动态链接的主要内容,如果未能解决你的问题,请参考以下文章

markdown 关于React-native的常见样式修复和有用提示

markdown React Native Collections

markdown React Native中的numberOfLines

markdown 我的React Native开发环境

markdown React Native Bridging Cheatsheet

markdown React Native Android入门