You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a draft In-App message of type Card with a button that links to my company's intranet site (https://custweb.paragontech.com). I sent it out using Test on Device. The message was successfully received and opened on my test device, but when I clicked on the button it just closed the message instead of opening the link.
I am using react-native with the latest version of all firebase packages.
requireFile.join(File.dirname(`node --print "require.resolve('expo/package.json')"`),"scripts/autolinking")# Resolve react_native_pods.rb with node to allow for hoistingrequirePod::Executable.execute_command('node',['-p','require.resolve( "react-native/scripts/react_native_pods.rb", {paths: [process.argv[1]]}, )',__dir__]).stripplatform:ios,min_ios_version_supportedprepare_react_native_project!# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded## To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`# ```js# module.exports = {# dependencies: {# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),# ```flipper_config=ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
$RNFirebaseAnalyticsWithoutAdIdSupport =truelinkage=ENV['USE_FRAMEWORKS']iflinkage != nilPod::UI.puts"Configuring Pod with #{linkage}ally linked Frameworks".greenuse_frameworks!:linkage=>linkage.to_symendabstract_target'Dragon Targets'douse_expo_modules!post_integratedo |installer|
beginexpo_patch_react_imports!(installer)rescue=>ePod::UI.warneendbeginexpo_patch_react_imports!(installer)rescue=>ePod::UI.warneendendconfig=use_native_modules!use_frameworks!:linkage=>:staticuse_react_native!(:path=>config[:reactNativePath],# Enables Flipper.## Note that if you have use_frameworks! enabled, Flipper will not work and# you should disable the next line.# :flipper_configuration => flipper_config,# An absolute path to your application root.:app_path=>"#{Pod::Config.instance.installation_root}/..")target'DragonTests'doinherit!:complete# Pods for testingendtarget'Dragon'target'Dragon AppStore'post_installdo |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202react_native_post_install(installer,config[:reactNativePath],:mac_catalyst_enabled=>false)# This is necessary for Xcode 14, because it signs resource bundles by default# when building for devices.installer.target_installation_results.pod_target_installation_results.eachdo |pod_name,target_installation_result|
target_installation_result.resource_bundle_targets.eachdo |resource_bundle_target|
resource_bundle_target.build_configurations.eachdo |config|
config.build_settings['CODE_SIGNING_ALLOWED']='NO'endendendinstaller.pods_project.targets.eachdo |target|
target.build_configurations.eachdo |config|
ifGem::Version.new('12.0') > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']='12.0'endendendendend
AppDelegate.mm:
#import"AppDelegate.h"
#import<Firebase.h>
#import<React/RCTBundleURLProvider.h>
#import<React/RCTLinkingManager.h>@implementationAppDelegate
- (BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FIRApp configure];
self.moduleName = @"Dragon";
// You can add your custom initial props in the dictionary below.// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
return [superapplication:application didFinishLaunchingWithOptions:launchOptions];
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
return [selfgetBundleURL];
}
- (NSURL *)getBundleURL
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#elsereturn [[NSBundlemainBundle] URLForResource:@"main"withExtension:@"jsbundle"];
#endif
}
- (BOOL)application:(UIApplication *)applicationopenURL:(NSURL *)urloptions:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}
- (BOOL)application:(UIApplication *)applicationcontinueUserActivity:(nonnull NSUserActivity *)userActivityrestorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
@end
Environment
Click To Expand
react-native info output:
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M2
Memory: 104.08 MB / 16.00 GB
Shell:
version: 3.6.1
path: /opt/homebrew/bin/fish
Binaries:
Node:
version: 18.18.2
path: /var/folders/3s/62zs9d2s1z39gyxyh3p2klm4g4rbz5/T/yarn--1718647083368-0.15506613156732874/node
Yarn:
version: 1.22.22
path: /var/folders/3s/62zs9d2s1z39gyxyh3p2klm4g4rbz5/T/yarn--1718647083368-0.15506613156732874/yarn
npm:
version: 9.8.1
path: ~/.nvm/versions/node/v18.18.2/bin/npm
Watchman: Not Found
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/nskiba/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.4
wanted: 0.73.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
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
react-native-firebase version you're using that has this issue:
20.1.0
Firebase module(s) you're using that has the issue:
I believe I've found the issue. Having followed the instructions to enable Deep Linking on startup for a react-native application, the handlers in my AppDelegate.mm file conflict with the ones set up by react-native firebase. Fortunately I don't need to handle Deep Links to my app on app launch, so I can remove the offending handlers from my AppDelegate.mm for the moment. That said, it may be worthwhile to look into whether an alternate method can be used that doesn't conflict with the Deep Linking configuration found here: https://reactnative.dev/docs/linking?language=javascript#enabling-deep-links
Issue
I created a draft In-App message of type Card with a button that links to my company's intranet site (https://custweb.paragontech.com). I sent it out using Test on Device. The message was successfully received and opened on my test device, but when I clicked on the button it just closed the message instead of opening the link.
I am using react-native with the latest version of all firebase packages.
This seems to be related to #7730 and #6861, both of which were closed as stale without resolution.
Relevant XCode Output:
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.mm
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:20.1.0
Firebase
module(s) you're using that has the issue:in-app-messaging
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: