react-native-firebase iOS linking issue with manual installation

Created on 13 May 2019  路  15Comments  路  Source: invertase/react-native-firebase


Issue



Describe your issue here
No known class method for selector 'componentsWithLink:domain:'
Screen Shot 2019-05-14 at 12 47 46 AM


Project Files






iOS

Click To Expand

#### `ios/Podfile`: - [x] I'm not using Pods - [x] I'm using Pods and my Podfile looks like:

# N/A
#### `AppDelegate.m`:
// N/A


Android

Click To Expand

#### `android/build.gradle`:

// N/A
#### `android/app/build.gradle`:
// N/A
#### `android/settings.gradle`:
// N/A
#### `MainApplication.java`:
// N/A
#### `AndroidManifest.xml`:
<!-- N/A -->


Environment

Click To Expand

**`react-native info` output:**

 OUTPUT GOES HERE
- **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`Firebase` module(s) you're using that has the issue:** - `e.g. Instance ID` - **Are you using `TypeScript`?** - `Y/N`




Think react-native-firebase is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]

No Template Stale

Most helpful comment

Tried after cleaning uninstalling and reinstalling Pods. Still the same issue.

All 15 comments

Following!

@Steve1820 that sends mail to everyone, with no value. Just hit the subscribe button to follow (same as facebook where rather than a useless "follow" or +1 you can enable notifications by using an action from their menu)

Have the same error. When setup manual, used Firebase-6.2.0.zip.

Hi guys - I apologize but there are so many install issues, and they are so hard to work out that while others might be able to sort out the manual install style, I have only had success with pods. I recommend you look at https://github.com/mikehardy/rnfbdemo as it goes from nothing to working in just a few lines, using Pods.

Thanks, installed via pods. Nice tutorial

I'm having the exact same issue.

Podfile

# platform :ios, '11.0'

target 'testMobileApp' do
  # this is very important to have!
  rn_path = '../node_modules/react-native'
  pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
  pod 'React', path: rn_path, subspecs: [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
  ]

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
  pod 'Firebase/Core'
  pod 'Firebase/Analytics'
  pod 'Firebase/DynamicLinks'
  pod 'GoogleIDFASupport', '~> 3.14.0'

end

# very important to have, unless you removed React dependencies for Libraries
# and you rely on Cocoapods to manage it
post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "React"
      target.remove_from_project
    end
  end
end
react-native-firebase v5.3.1
firebase v6.0.2
react-native 0.58.4

Tried after cleaning uninstalling and reinstalling Pods. Still the same issue.

I have the same issue. It seems like componentsWithLink:domain: was deprecated and replaced with componentsWithLink:domainURIPrefix: but the deprecated one is still being used.

The implementation for componentsWithLink:domain: is still there in FDLURLComponents.m, but its signature is removed from the header, FDLURLComponents.h, hence the 'not found' error.

If it's a problem with domain vs domainURIPrefix please check the release notes for react-native-firebase v5.5.x - this was a breaking change and things should work if you carefully follow the compatibility matrix in the getting started page on rnfirebase.io

Hello 馃憢, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.

So did anyone find a fix for this?

Yes,
you need to add https:// to domainPrefix

example:

 new RNFirebase.links.DynamicLink(`https://www.google.com`, 'https://example.page.link')
            .android.setPackageName('com.example')
            .ios.setBundleId('org.example');

Hello 馃憢, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

In case that anyone still face this issue, I solved this by upgrading/ensure the react-native-firebase version is at least ~5.5.7, if you are still using v5.x.x it is. In addition to that, my app works properly using Firebase/DynamicLinks, '~> 6.13.0'.

The reason for the error is because there is a breaking change for the mentioned method above and the domain parameter name is changed to domainURIPrefix.

Was this page helpful?
0 / 5 - 0 ratings