GithubHelp home page GithubHelp logo

cordova-plugin-firebase-dynamiclinks's Introduction

Cordova plugin for Firebase Dynamic Links

NPM version NPM downloads NPM total downloads PayPal donate Twitter

Index

Supported Platforms

  • iOS
  • Android

Installation

$ cordova plugin add cordova-plugin-firebase-dynamiclinks \
    --variable APP_DOMAIN_NAME="mydomain.page.link"

Use variable APP_DOMAIN_NAME to specify your Google generated *.page.link domain or other custom domain.

$ cordova plugin add cordova-plugin-firebase-dynamiclinks \
    --variable APP_DOMAIN_NAME="mydomain.com" \
    --variable APP_DOMAIN_PATH="/app1"

Use variables APP_DOMAIN_PATH to speciy a specific domain path prefix when using a custom domain. This is useful if multiple apps share the same root level domain. If specified this path must begin with a /.

Use variables IOS_FIREBASE_POD_VERSION and ANDROID_FIREBASE_BOM_VERSION to override dependency versions for Firebase SDKs:

$ cordova plugin add cordova-plugin-firebase-dynamiclinks \
--variable IOS_FIREBASE_POD_VERSION="9.3.0" \
--variable ANDROID_FIREBASE_BOM_VERSION="30.3.1"

Adding required configuration files

Cordova supports resource-file tag for easy copying resources files. Firebase SDK requires google-services.json on Android and GoogleService-Info.plist on iOS platforms.

  1. Put google-services.json and/or GoogleService-Info.plist into the root directory of your Cordova project
  2. Add new tag for Android platform
<platform name="android">
    ...
    <resource-file src="google-services.json" target="app/google-services.json" />
</platform>
...
<platform name="ios">
    ...
    <resource-file src="GoogleService-Info.plist" />
</platform>

Type Aliases

DynamicLinkAndroidInfo

DynamicLinkAndroidInfo: Object

Type declaration

Name Type Description
androidFallbackLink string Link to open when the app isn't installed.
androidMinPackageVersionCode number VersionCode of the minimum version of your app that can open the link.
androidPackageName string Package name of the Android app to use to open the link.

DynamicLinkGoogleAnalyticsInfo

DynamicLinkGoogleAnalyticsInfo: Object

Type declaration

Name Type Description
utmCampaign string Campaign name; The individual campaign name, slogan, promo code, etc. for a product.
utmContent string Campaign content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL.
utmMedium string Campaign medium; used to identify a medium such as email or cost-per-click (cpc).
utmSource string Campaign source; used to identify a search engine, newsletter, or other source.
utmTerm string Campaign term; used with paid search to supply the keywords for ads.

DynamicLinkIosInfo

DynamicLinkIosInfo: Object

Type declaration

Name Type Description
iosAppStoreId string App Store ID, used to send users to the App Store when the app isn't installed.
iosBundleId string Bundle ID of the iOS app to use to open the link.
iosFallbackLink string Link to open when the app isn't installed.
iosIpadBundleId string Bundle ID of the iOS app to use on iPads to open the link.
iosIpadFallbackLink string Link to open on iPads when the app isn't installed.

DynamicLinkItunesAnalyticsInfo

DynamicLinkItunesAnalyticsInfo: Object

Type declaration

Name Type Description
at string Affiliate token used to create affiliate-coded links.
ct string Campaign token that developers can add to any link in order to track sales from a specific marketing campaign.
pt string Provider token that enables analytics for Dynamic Links from within iTunes Connect.

DynamicLinkNavigationInfo

DynamicLinkNavigationInfo: Object

Type declaration

Name Type Description
enableForcedRedirect boolean If true, app preview page will be disabled and there will be a redirect to the FDL.

DynamicLinkOptions

DynamicLinkOptions: Object

Options when creating a dynamic link Parameter names has the same meaning as in the Firebase Dynamic Links Short Links API Reference

Type declaration

Name Type Description
androidInfo? DynamicLinkAndroidInfo Android parameters.
domainUriPrefix? string Domain uri prefix to use for this Dynamic Link.
googlePlayAnalytics? DynamicLinkGoogleAnalyticsInfo Google Analytics parameters.
iosInfo? DynamicLinkIosInfo iOS parameters.
itunesConnectAnalytics? DynamicLinkItunesAnalyticsInfo iTunes Connect App Analytics parameters.
link string The link your app will open.
navigationInfo? DynamicLinkNavigationInfo Navigation info parameters.
socialMetaTagInfo? DynamicLinkSocialInfo Social meta-tag parameters.

DynamicLinkPayload

DynamicLinkPayload: Object

Type declaration

Name Type Description
clickTimestamp number The time that the user clicked on the dynamic link.
deepLink string | null Link parameter of the dynamic link.
minimumAppVersion? number The minimum app version requested to process the dynamic link that can be compared directly with versionCode (Android only)

DynamicLinkSocialInfo

DynamicLinkSocialInfo: Object

Type declaration

Name Type Description
socialDescription string Description to use when the Dynamic Link is shared in a social post.
socialImageLink string URL to an image related to this link.
socialTitle string Title to use when the Dynamic Link is shared in a social post.

Functions

createDynamicLink

createDynamicLink(params): Promise<string>

Creates a Dynamic Link from the parameters.

Example

cordova.plugins.firebase.dynamiclinks.createDynamicLink({
    link: "https://google.com"
}).then(function(deepLink) {
    console.log("Generated deep link", deepLink);
});

Parameters

Name Type Description
params DynamicLinkOptions Parameters to use for building a link

Returns

Promise<string>

Fulfils promise with created link string


createShortDynamicLink

createShortDynamicLink(params): Promise<string>

Creates a shortened Dynamic Link from the parameters. Shorten the path to a string that is only as long as needed to be unique, with a minimum length of 4 characters. Use this method if sensitive information would not be exposed if a short Dynamic Link URL were guessed.

Example

cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({
    link: "https://google.com"
}).then(function(deepLink) {
    console.log("Generated deep link", deepLink);
});

Parameters

Name Type Description
params DynamicLinkOptions Parameters to use for building a link

Returns

Promise<string>

Fulfils promise with created link string


createUnguessableDynamicLink

createUnguessableDynamicLink(params): Promise<string>

Creates a Dynamic Link from the parameters. Shorten the path to an unguessable string. Such strings are created by base62-encoding randomly generated 96-bit numbers, and consist of 17 alphanumeric characters. Use unguessable strings to prevent your Dynamic Links from being crawled, which can potentially expose sensitive information.

Example

cordova.plugins.firebase.dynamiclinks.createUnguessableDynamicLink({
    link: "https://google.com"
}).then(function(deepLink) {
    console.log("Generated deep link", deepLink);
});

Parameters

Name Type Description
params DynamicLinkOptions Parameters to use for building a link

Returns

Promise<string>

Fulfils promise with created link string


getDynamicLink

getDynamicLink(): Promise<DynamicLinkPayload | null>

Determines if the app has a pending dynamic link and provide access to the dynamic link parameters.

Example

cordova.plugins.firebase.dynamiclinks.getDynamicLink().then(function(payload) {
    if (payload) {
        console.log("Read dynamic link data on app start:", payload);
    } else {
        console.log("App wasn't started from a dynamic link");
    }
});

Returns

Promise<DynamicLinkPayload | null>

Fulfils promise with dynamic link payload when it exists.


onDynamicLink

onDynamicLink(callback, errorCallback?): void

Registers callback that is triggered on each dynamic link click.

Example

cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(payload) {
    console.log("Dynamic link click with data:", payload);
});

Parameters

Name Type Description
callback (payload: DynamicLinkPayload) => void Callback function
errorCallback? (error: string) => void Error callback function

Returns

void

cordova-plugin-firebase-dynamiclinks's People

Contributors

athorcis avatar chemerisuk avatar forshant avatar mcfarljw avatar misterwell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-firebase-dynamiclinks's Issues

Android build error "but firebase-iid version was 19.0.0"

After installing this plugin I cannot build my android app anymore and I keep getting this error. I tried to use the version variables but nothing works for me.

* What went wrong:
Failed to capture fingerprint of input files for task ':app:preReleaseBuild' property 'compileManifests' during up-to-date check.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.0.
  0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

  Dependency failing: com.google.firebase:firebase-messaging:17.0.0 -> com.google.firebase:firebase-iid@[16.0.0], but fire
  base-iid version was 19.0.0.

  The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
  ifact with the issue.
  -- Project 'app' depends onto com.google.firebase:[email protected]
  -- Project 'app' depends onto com.google.firebase:[email protected].+
  -- Project 'app' depends onto com.google.firebase:[email protected]
  -- Project 'app' depends onto com.google.firebase:[email protected].+
  -- Project 'app' depends onto com.google.android.gms:[email protected]
  -- Project 'app' depends onto com.google.firebase:[email protected]
  -- Project 'app' depends onto com.google.firebase:[email protected]

My android platform version is 8.0.0 and I use cordova 9.0.0

capacitor Module 'Firebase' not found

I have tired many times to install and use this with capacitor.

No matter which pods or packages I install I am always getting this error:

Module 'Firebase' not found

Anyone have any success with capacitor and this?

It does not work with android 4.4.4

The plugin does not support android 4.4.4. It gives a white screen on startup. :(
I'm using it with the variable FIREBASE_DYNAMIC_LINKS_VERSION=15.0.2

As long as this code is present (do not have to be executed) android 4.4.4 will failed:

window.cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data) { ....})

error: cannot access zzbgl class file for com.google.android.gms.internal.zzbgl not found

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.layton.govirul"
minSdkVersion 19
targetSdkVersion 28
multiDexEnabled true
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1 (
)'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:28.0.0-alpha1'
implementation 'com.firebase:geofire-android:2.1.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-maps:12.0.1'

implementation 'com.github.glomadrian:MaterialAnimatedSwitch:1.1@aar'
implementation 'com.firebase:geofire-android:2.1.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-storage:16.0.2'

implementation 'com.android.support:multidex:1.0.3'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
implementation 'com.github.d-max:spots-dialog:1.1@aar'
implementation 'com.github.bumptech.glide:glide:4.0.0'
implementation 'com.android.support:design:28.0.0-alpha1(*)'
implementation 'com.android.support:cardview-v7:28.0.0-alpha1(*)'
implementation 'com.github.jd-alexander:library:1.1.0'
implementation 'com.android.support:design-snackbar:28.0.0-alpha1'

}
apply plugin: 'com.google.gms.google-services'

Ionic ios build failed

Hello, after install the plugin ionic project can't compile cause:

The following build commands failed:
CompileC Developer/Xcode/DerivedData/AWorld-cafcuqysjdzagnbvkvdpdyohacrh/Build/Intermediates.noindex/AWorld.build/Debug-iphonesimulator/AWorld.build/Objects-normal/x86_64/FirebaseDynamicLinksPlugin.o platforms/ios/AWorld/Plugins/cordova-plugin-firebase-dynamiclinks/FirebaseDynamicLinksPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65

another error on compile process is

/cordova-plugin-firebase-dynamiclinks/FirebaseDynamicLinksPlugin.h:4:9: fatal error: module 'Firebase' not found
@import Firebase;

here my ionic info

Ionic:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.4.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.4.1

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.4, browser 5.0.4, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 18 other plugins)

System:

ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001

I've already try to install firebase plugin but compile fail with another error
(from xcode)
ARC Semantic Issue
/Plugins/cordova-plugin-firebase/FirebasePlugin.m:117:47: No visible @interface for 'FIRMessaging' declares the selector 'setDelegate:'

CocoaPods could not find compatible versions for pod "Firebase/Core":

Hi,

I am unable to install this plugin along with another plugin cordova-plugin-firebase-lib. I am using this in Ionic 4 project with Cordova 9 and cordova-ios 5.

Requirements for this plugin are:

<pod name="Firebase/Core" spec="~> 6.3.0" />
<pod name="Firebase/DynamicLinks" spec="~> 6.3.0" />

Requirements for other plugin are:

<pod name="Firebase/Core" spec="5.20.2"/>
<pod name="Firebase/Auth" spec="5.20.2"/>
<pod name="Firebase/Messaging" spec="5.20.2"/>
<pod name="Firebase/Performance" spec="5.20.2"/>
<pod name="Firebase/RemoteConfig" spec="5.20.2"/>
<pod name="Fabric" spec="1.10.2"/>
<pod name="Crashlytics" spec="3.13.2"/>

If I install this plugin alone it installs, if I install this plugin after above mentioned plug in it fails to install with the following error message:

[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
  In Podfile:
    Firebase/Core (~> 6.3.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Core (~> 6.3.0)`.

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

I removed "Pod" section from this plugin and it installed, then added it manually to pod file without version and pod installed FirebaseDynamicLinks (3.4.3), if I specify version 6.3.0 previous error is triggered. However, Dynamic Link Interception still not working.

Is there a way to fix this error and install this plugin normally?

Any help will be much appreciated.

Firebase Dynamic Links plugin cannot be installed on iOS

Hi There,
I have followed the instructions using "https://ionicframework.com/docs/v3/native/firebase-dynamic-links/" and "https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks"

I have added the below in my config.xml

<preference name="GoogleIOSClientId" value="xxx49900----" />

Then --Added platform ionic cordova platform add [email protected]

then ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN="example.com" --variable PAGE_LINK_DOMAIN="example.page.link"

And got this error
Installing "cordova-plugin-firebase-dynamiclinks" for ios
Running command: pod install --verbose
Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/Users/dev/Ionic4/untitled folder/MMAUIRepo/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
pod: Command failed with exit code 1

Tried updating pod

and ended up with
$ pod update
Update all pods
Updating local specs repositories
$ /usr/bin/git -C /Users/dev/.cocoapods/repos/master fetch origin --progress
remote: Enumerating objects: 67, done.
remote: Counting objects: 100% (67/67), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 45 (delta 30), reused 0 (delta 0), pack-reused 0
From https://github.com/CocoaPods/Specs
61d3b0edeeb..aa4a6a3f478 master -> origin/master
$ /usr/bin/git -C /Users/dev/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/dev/.cocoapods/repos/master reset --hard origin/master
HEAD is now at aa4a6a3f478 [Add] Ensighten-no-idfa 2.1.4
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
Firebase/Core (~> 6.3.0) was resolved to 6.3.0, which depends on
Firebase/CoreOnly (= 6.3.0) was resolved to 6.3.0, which depends on
FirebaseCore (= 6.0.3)

Firebase/Core (~> 6.3.0) was resolved to 6.3.0, which depends on
  FirebaseAnalytics (= 6.0.2) was resolved to 6.0.2, which depends on
    FirebaseCore (~> 6.0)

FirebaseMessaging (~> 2.0.0) was resolved to 2.0.8, which depends on
  FirebaseCore (~> 4.0)

Can some one please help me here, struggling with this issue since couple of days

Thanks
Raj

Phonegap Build iOS - Error: pod: Command failed with exit code 1

Everything works with Android, but I cannot get it build on Phongap Build service on iOS:

Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
pod: Command failed with exit code 1

Here is the main part of my config.xml:

<preference name="phonegap-version" value="cli-8.0.0" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-targetSdkVersion" value="26" />
<preference name="android-minSdkVersion" value="16" />

<preference name="orientation" value="portrait" />
<preference name="DisallowOverscroll" value="true"/>
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#333333" />

<plugin name="cordova-plugin-camera" source="npm" spec="~2.4.1" />
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.6" />
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.3.3" />
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.4.3" />
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="~3.0.0" />
<plugin name="cordova-plugin-network-information" source="npm" spec="~1.3.3" />
<plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2"/>
<plugin name="cordova-plugin-splashscreen" source="npm" spec="~5.0.2"/>
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.3.3"/>
<plugin name="phonegap-plugin-push" spec="~2.1.2">
	<variable name="FCM_VERSION" value="11.0.+" />
</plugin>
<plugin name="cordova-plugin-x-socialsharing" source="npm" />
<plugin name="cordova-plugin-firebase-dynamiclinks" source="npm" spec="1.0.1">
	<param name="APP_DOMAIN" value="http://www.unitedhive.com" />
	<param name="PAGE_LINK_DOMAIN" value="unitedhive.page.link" />
	<param name="FIREBASE_DYNAMIC_LINKS_VERSION" value="11.0.+" />
</plugin>

Android creating new webview for dynamic link

It looks like the Android implementation is creating a new webview when opening a dynamic link. For example, if my app is running, then I go to the Messages app and click on dynamic link, it reopens the app, and chrome://inspect shows two webviews running. Is this expected? I only want one webview running, so is there a way to do that?

conflict with other google plugins

tuve muchos conflicts con los plugins de firebase, yo tuve que desinstalar y usar branch.

Cannot add task ':app:processDebugGoogleServices' as a task with that name already exists.

i have problem with fmc, Onesignal,

Listening to events triggered after the app is launch using Firebase Dynamic Links.

Basically,
Once the app is launched from the Firebase Dynamic Links, we do receive the link parameter by subscribing to the onDynamicLink method, but we have certain scenarios which are not documented where we need to track some additional data and proceed accordingly, which are mentioned below:

  • How can we differentiate and track if the app is launched normally or using the generated Firebase Dynamic Link?
  • What will happen if we directly click on the URL configured with the APP_DOMAIN variable?

So in the current version, do we have any way of listening to events which get triggered once the app is launched using generated dynamic link and map the navigation parameters passed within to navigate the app to the requested view?

Please guide me to a better approach or help redirect me to a service which can help me meet these requirements.

Thanks.

Using "requireCordovaModule" to load non-cordova module "child_process" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.

Cant compile IOS after download the latest plugin and upgrade angular to 9.0.0

This post (apache/cordova#52 (comment)) from Cordova mentioned "the error message is an attempt to communicate that we do not really want to support using "requireCordovaModule" to load non-Cordova module "q" any longer. We really recommend that you consider importing and requiring the q module in your own code"

Use of undeclared identifier 'FIRAnalyticsConfiguration'

Hello,

Iโ€™m trying to build an iOS app with dynamiclinks, but I always get an error.

cordova -v
9.0.0 ([email protected])

From the terminal :

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/florianchevallier/Library/Developer/Xcode/DerivedData/Ouibus-aljvwzkakexzbefadvjwwzkksiis/Build/Intermediates.noindex/Ouibus.build/Debug-iphonesimulator/Ouibus.build/Objects-normal/x86_64/AppDelegate+FirebasePlugin.o Ouibus/Plugins/cordova-plugin-firebase-lib/AppDelegate+FirebasePlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -workspace,Ouibus.xcworkspace,-scheme,Ouibus,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone Xs Max,build,CONFIGURATION_BUILD_DIR=/Users/florianchevallier/Projects/Ouibus/Ouibus_cordovaNext/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/florianchevallier/Projects/Ouibus/Ouibus_cordovaNext/platforms/ios/build/sharedpch,-UseModernBuildSystem=0'

From XCode :

in FirebasePlugin.m

Use of undeclared identifier 'FIRAnalyticsConfiguration'

When I remove the plugin, and let Firebase alone, it works well.

iOS - Firebase Dynamic Link doesn't redirect to the app when open through Safari

I have added this plugin in my app, when I open in iPhone link through Google Chrome, it redirects me to the app, but when I'm trying to open app through Safari, it doesn't open the app.

<plugin name="cordova-plugin-firebase-dynamiclinks" source="npm" spec="0.13.2">
<param name="APP_DOMAIN" value="example.com" />
<param name="PAGE_LINK_DOMAIN" value="example.page.link" />
<param name="FIREBASE_DYNAMIC_LINKS_VERSION" value="11.8.0" />
</plugin>

Deep link :
https://example.page.link/hQk3

iOS link settings :
image

Handling code on Device Ready :
cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data){
var data = JSON.stringify(data);
var obj = JSON.parse(data);
alert("Deep Link: "+obj.deepLink);
});

Even through Chrome, sometimes it opens the App Store and previous deep link value returning instead of the current one.

What can be wrong and how is possible to fix that?

Plugin cannot be installed on cordova-android 6.3.0, but upgrading also fails.

If I try to install the plugin in my project, it tells me that I need to upgrade the version of cordova-android.

Plugin doesn't support this project's cordova-android version. cordova-android: 6.3.0, failed version requirement: >=7.0.0
Skipping 'cordova-plugin-firebase-dynamiclinks' for android

But when I do that, I get the following error:

Failed to install 'cordova-plugin-device': Error: ENOENT: no such file or directory, open '/Users/andreas/Programming/app/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:653:18)
    at Object.fs.readFileSync (fs.js:554:33)
    at Object.parseElementtreeSync (/Users/andreas/Programming/app/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/andreas/Programming/app/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/andreas/Programming/app/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/andreas/Programming/app/platforms/android/cordova/Api.js:223:57)
    at handleInstall (/Users/andreas/.nvm/versions/node/v8.7.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
    at /Users/andreas/.nvm/versions/node/v8.7.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
    at _fulfilled (/Users/andreas/.nvm/versions/node/v8.7.0/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/andreas/.nvm/versions/node/v8.7.0/lib/node_modules/cordova/node_modules/q/q.js:816:30)
Error: ENOENT: no such file or directory, open '/Users/andreas/Programming/app/platforms/android/AndroidManifest.xml'

I read on stackoverflow that this doesn't necessarily have to do with the AndroidManifest.xml file, but rather some files (like google-services.json) not being found. So I added this to my config.xml as well:

<resource-file src="google-services.json" target="google-services.json" />
<preference name="GoogleAndroidClientId" value="google-services.json" />
<resource-file src="GoogleService-Info.plist" />
<preference name="GoogleIOSClientId" value="GoogleService-Info.plist" />

But I'm still getting the same error.

Did anyone else also encounter this error?

Dynamic link not recognized when app is being launched

This is working fine when the app is already open, and a dynamic link is invoked somewhere, but not when the app needs to be launched, or when opening after installing. I think it's because the logic to listen to the links is not set up in time for the first ping. Is this a known problem and is there a known approach? In case it matters, I have an Angular app.

Build Fails After Installing Plugin

Hi @chemerisuk,
I am getting google-services.json file not found error while building for Ionic 3.

Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]

> File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: /Users/user/Documents/Git/ionic/platforms/android/app/src/nullnull/debug/google-services.json /Users/user/Documents/Git/ionic/platforms/android/app/src/debug/nullnull/google-services.json /Users/user/Documents/Git/ionic/platforms/android/app/src/nullnull/google-services.json /Users/user/Documents/Git/ionic/platforms/android/app/src/debug/google-services.json /Users/user/Documents/Git/ionic/platforms/android/app/src/nullnullDebug/google-services.json /Users/user/Documents/Git/ionic/platforms/android/app/google-services.json

Build fail with for Android platform [Resolved]

Build kept failing when I installed this plugin, I would get the following build error

BUILD FAILED in 5s
28 actionable tasks: 3 executed, 25 up-to-date
(node:4178) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/santiago/Sites/clients/andpizza/mobile-app/platforms/android/gradlew: Command failed with exit code 1 Error output:
platforms/android/app/src/main/java/com/adobe/phonegap/push/FCMService.java:74: error: cannot access zzbej
    String from = message.getFrom();

I was able to resolve the issue by installing the following plugins. I did have to remove the --variable PLAY_SERVICES_VERSION=15.+ and --variable FIREBASE_VERSION=15.+.

IOS Empty Values when app is not background

Hi, in general, this plugin is working well.

But, I found a bug on IOS that happens only when the app is completely closed (not in background).

The function callback is executed, but, the values are empty.

image

await this.platform.ready()
this.firebaseDynamicLinks.onDynamicLink().subscribe(data => {
  console.log(data) // empty values
  this.handleDynamicLink(data.deepLink)
})

In this way. I'm not able to redirect the user to a specific content inside my app.

Can you please help me?
Thank you!!

cordova-plugin-firebase-dynamiclinks : export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;

Having issue in setuping firebase dynamic link in my ionic project.

Steps are described which I follow for setup this plugin :

  1. Install the plugin using
    ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable PAGE_LINK_DOMAIN="example.page.link"
  2. Install the NPM package for this using
    npm install @ionic-native/firebase-dynamic-links
  3. Added below code to my app.component.ts file
import { FirebaseDynamicLinks } from '@ionic-native/firebase-dynamic-links/ngx';


constructor(private firebaseDynamicLinks: FirebaseDynamicLinks) { }

...
// Handle the logic here after opening the app with the Dynamic link
this.firebaseDynamicLinks.onDynamicLink()
  .subscribe((res: any) => console.log(res), (error:any) => console.log(error));


After that I tried to build my project and suddenly got an error :

vendor.js:2135 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
โ€‚โ€‚โ€‚โ€‚at FirebaseDynamicLinks.onDynamicLink (vendor.js:93256)
โ€‚โ€‚โ€‚โ€‚at main.js:1006
โ€‚โ€‚โ€‚โ€‚at t.invoke (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at Object.onInvoke (vendor.js:5446)
โ€‚โ€‚โ€‚โ€‚at t.invoke (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at r.run (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at polyfills.js:3
โ€‚โ€‚โ€‚โ€‚at t.invokeTask (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at Object.onInvokeTask (vendor.js:5437)
โ€‚โ€‚โ€‚โ€‚at t.invokeTask (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at c (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at polyfills.js:3
โ€‚โ€‚โ€‚โ€‚at t.invokeTask (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at Object.onInvokeTask (vendor.js:5437)
โ€‚โ€‚โ€‚โ€‚at t.invokeTask (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at r.runTask (polyfills.js:3)
โ€‚โ€‚โ€‚โ€‚at o (polyfills.js:3)
defaultErrorLogger @ vendor.js:2135
  1. For remove this error, I googled some blogs and got a link through remove this using
    npm i rxjs@^6.0 rxjs-compat

After that I build my project again, Now i got some strange error :

[16:34:53]โ€‚โ€‚typescript: node_modules/rxjs/internal/types.d.ts, line: 81
โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚'ObservableInput' only refers to a type, but is being used as a value here.

โ€‚โ€‚โ€‚โ€‚โ€‚โ€‚L81:โ€‚โ€‚export declare type ObservedValueOf = O extends ObservableInput ? T : never;

I googled but can't solve this.

I tried to remove node_modules and install again and doing same for platform but it persist yet.

Here is my environment info :

โœ” Gathering environment info - done!

Ionic:

ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.10

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.1.1, ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 15 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/anandmahajan/Library/Android/sdk)
ios-deploy : 1.9.4
NodeJS : v8.11.1 (/usr/local/bin/node)
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b

Please suggest me some solution to overcome this issue.

Thanks in advance.

Phonegap Build iOS - Error: pod: Command failed with exit code 1

Everything works with Android, but I cannot get it build on Phongap Build service on iOS:

Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
pod: Command failed with exit code 1

Everything works with Android, but I cannot get it build on Phongap Build service on iOS:

Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
pod: Command failed with exit code 1

Here is the main part of my config.xml:

<preference name="phonegap-version" value="cli-8.0.0" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-targetSdkVersion" value="26" />
<preference name="android-minSdkVersion" value="16" />

<preference name="orientation" value="portrait" />
<preference name="DisallowOverscroll" value="true"/>
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#333333" />

<plugin name="cordova-plugin-camera" source="npm" spec="~2.4.1" />
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.6" />
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.3.3" />
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.4.3" />
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="~3.0.0" />
<plugin name="cordova-plugin-network-information" source="npm" spec="~1.3.3" />
<plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2"/>
<plugin name="cordova-plugin-splashscreen" source="npm" spec="~5.0.2"/>
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.3.3"/>
<plugin name="phonegap-plugin-push" spec="~2.1.2">
	<variable name="FCM_VERSION" value="11.0.+" />
</plugin>
<plugin name="cordova-plugin-x-socialsharing" source="npm" />
<plugin name="cordova-plugin-firebase-dynamiclinks" source="npm" spec="1.0.1">
	<param name="APP_DOMAIN" value="http://www.unitedhive.com" />
	<param name="PAGE_LINK_DOMAIN" value="unitedhive.page.link" />
	<param name="FIREBASE_DYNAMIC_LINKS_VERSION" value="11.0.+" />
</plugin>

Appears to be a duplicate of #11 except Downgrading the Dynamic Links plugin version to v0.14.0 or v0.13.2 did not work for me. Is there another plugin that needs to be changed as well?

Installation failed: Error: pod: Command failed with exit code 1

I'm trying to install your plugin but i get this error:

Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 1
  at ChildProcess.whenDone (/Users/..../platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
  at emitTwo (events.js:125:13)
  at ChildProcess.emit (events.js:213:7)
  at maybeClose (internal/child_process.js:927:16)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

cli packages: (/Users/christianmartin/.nvm/versions/node/v8.4.0/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.5
Cordova Platforms  : ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.2 
Node       : v8.4.0
npm        : 5.2.0 
OS         : macOS High Sierra
Xcode      : Xcode 9.3.1 Build version 9E501 

when using with phonegap-plugin-push ios pod install fail

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
Firebase/Core (~> 5.0)

Firebase/DynamicLinks (~> 5.0) was resolved to 5.0.0, which depends on
  Firebase/Core (= 5.0.0)

CocoaPods could not find compatible versions for pod "FirebaseAnalytics":
In Podfile:
Firebase/DynamicLinks (~> 5.0) was resolved to 5.0.0, which depends on
Firebase/Core (= 5.0.0) was resolved to 5.0.0, which depends on
FirebaseAnalytics (= 5.0.0)

Firebase/DynamicLinks (~> 5.0) was resolved to 5.0.0, which depends on
  FirebaseDynamicLinks (= 3.0.0) was resolved to 3.0.0, which depends on
    FirebaseAnalytics (~> 5.0)

FirebaseMessaging (~> 2.0.0) was resolved to 2.0.8, which depends on
  FirebaseAnalytics (~> 4.0)

Plugin not installed

I am building my application using Phonegap build. Here is my plugin code.

<plugin name="cordova-plugin-firebase-dynamiclinks">
<param name="APP_DOMAIN" value="test.com"/>
<param name="PAGE_LINK_DOMAIN" value="test.page.link"/>
<param name="FIREBASE_DYNAMIC_LINKS_VERSION" value="16.0.0"/>
</plugin>

<preference name="phonegap-version" value="cli-8.0.0"/>

I got the build but dynamic links plugin not installed. It doesn't exists if i extract the APK and check the plugin folder. Any idea?

Duplicated symbol ionic 4

Getting duplicated symbol error, most of them is duplicated in GoogleUtilities and FirebaseInstanceID, example:
duplicate symbol _GULSetLoggerLevel in:
xxx/platforms/ios/build/emulator/libGoogleUtilities.a(GULLogger.o)
xxx/Plugins/cordova-plugin-firebase/GoogleUtilities.framework/GoogleUtilities(GULLogger.o)

duplicate symbol OBJC_CLASS$_FIRInstanceIDResult in:
xxx/platforms/ios/build/emulator/libFirebaseInstanceID.a(FIRInstanceID.o)
xxx/Plugins/cordova-plugin-firebase/FirebaseInstanceID.framework/FirebaseInstanceID(FIRInstanceID_7d9a75c38ee22beb5a9d6b97919ce066.o)
ld: 334 duplicate symbols for architecture arm64

Ionic CLI: 5.0.2
Cordova CLI: 9.0.0 ([email protected])
ios: 5.0.1
Xcode: 10.1
Plugin version: 3.0.0

Error disappeared when plugin removed.

Application crashes after open via dynamic link on IPhone

Hello!
When I open application via dynamic link on iPhone I have crashed application.
Please see gif image

ezgif-6-e90a996d01c3

In the same time dynamic links work well on Android.
In process of build app I not get any errors!

Ionic info

   Ionic:

      ionic (Ionic CLI)  : 4.3.1 (/Users/dunice/.nvm/versions/node/v9.11.2/lib/node_modules/ionic)
      Ionic Framework    : ionic-angular 3.9.2
      @ionic/app-scripts : not installed

   Cordova:

      cordova (Cordova CLI) : 8.1.2 ([email protected])
      Cordova Platforms     : ios 4.5.5
      Cordova Plugins       : cordova-plugin-ionic-webview 2.2.3, (and 7 other plugins)

   System:

      Android SDK Tools : 26.1.1 (/Users/dunice/Library/Android/sdk)
      NodeJS            : v9.11.2 (/Users/dunice/.nvm/versions/node/v9.11.2/bin/node)
      npm               : 5.6.0
      OS                : macOS High Sierra
      Xcode             : Xcode 10.0 Build version 10A255

Firebase dynamic links version

   "cordova-plugin-firebase-dynamiclinks": {
           "FIREBASE_DYNAMIC_LINKS_VERSION": "16.1.+",
            ...
   }

Could you say me what could be the reason for this strange behavior?
Let me know if you need more information from me.

androidx api 28 error

25 actionable tasks: 9 executed, 16 up-to-date
/Users/mohamed/data/proj/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/mohamed/data/proj/platforms/android/app/src/main/java/by/chemerisuk/cordova/firebase/FirebaseDynamicLinksPlugin.java:7: error: cannot find symbol
import androidx.annotation.NonNull;
^
symbol: class NonNull
location: package androidx.annotation
/Users/mohamed/data/proj/platforms/android/app/src/main/java/by/chemerisuk/cordova/firebase/FirebaseDynamicLinksPlugin.java:66: error: cannot find symbol
public void onComplete(@nonnull Task task) {
^
symbol: class NonNull
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

iOS build errors

The plugin.xml references:
<framework src="Firebase/DynamicLinks" type="podspec" spec="~> 5.0"/>

But version 5.0 does not exist. They are currently at 3.4:
https://github.com/CocoaPods/Specs/tree/master/Specs/6/e/5/FirebaseDynamicLinks

Leaving the 5.0 spec in there causes a build error for me.

And if I manually remove the spec attribute, then I get an error about dependency on GoogleUtilities. Sorry I don't have the exact error message now, because I've moved past that.

Am I doing something wrong?

Writing on Firebase Database

Hi,
How can I write Selected Location LatLng From Google Maps Place picker to Firebase Database as my Pickup Location?

Dynamic Link Parameters

Hi!

I don't know if it is a real issue, but i didn't find a helpful content on the web about how to work with parameters in a Firebase Dynamic Link

My question is:

How can i use a parameter / query string with this plugin? Is it possible?

I have a dynamic link and it is working very well.

If the app is installed, it opens the app, otherwise it opens the app store, great!

My link is just like the following:
https://techbusinesshub.page.link/feed

I need to use something like:
https://techbusinesshub.page.link/feed?contentId=23

But when I do it I am not able to receive the parameters in the plugin callback. It opens the app but not gives me the parameters.

The output in my callback is like the following:

{
  clickTimestamp: 1559584054784,
  deepLink: "https://techbusinesshub.page.link",
  minimumAppVersion: 0
}

Can you help me? Thanks.

Ios build issue after installing dynamic link plugin.

Ld /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/i386/txc normal i386
cd "/Users/vc-pc-39/Documents/Project/new-clone/app/platforms/ios"
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk -L/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator -L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/GoogleToolboxForMac -L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/nanopb -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseDynamicLinks/Frameworks -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseInstanceID/Frameworks -Ftxc/Plugins/cordova-plugin-firebase -filelist /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/The\ Xavier's\Connect.build/Objects-normal/i386/txc.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/i386/txc_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lc++ -lnanopb -lsqlite3 -lz -framework AssetsLibrary -framework FirebaseAnalytics-framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseNanoPB -framework MessageUI -framework QuartzCore -framework StoreKit -framework SystemConfiguration -weak_framework WebKit -ObjC -lGoogleToolboxForMac -lc++ -lnanopb -lsqlite3 -lz -framework AssetsLibrary -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseNanoPB -framework MessageUI -framework QuartzCore -framework StoreKit -framework SystemConfiguration -weak_framework WebKit -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/txc.app-Simulated.xcent /Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libCordova.a -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -weak_framework WebKit -lz -weak_framework AddressBook -weak_framework AddressBookUI -framework MediaPlayer -framework CoreVideo -weak_framework Social-weak_framework MessageUI -framework UserNotifications -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseNanoPB -framework GoogleToolboxForMac -framework nanopb -framework Protobuf -framework FirebaseMessaging -framework FirebaseCrash -framework FirebaseRemoteConfig -framework FirebaseABTesting -framework FirebaseAuth -framework GTMSessionFetcher-framework FirebasePerformance -framework FirebaseISASwizzler -framework FirebaseMethodSwizzler -lPods-txc -Xlinker -dependency_info -Xlinker /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/i386/txc_dependency_info.dat -o /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/i386/txc
ld: warning: directory not found for option '-L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/nanopb'
duplicate symbol OBJC_CLASS$_PodsDummy_nanopb in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libnanopb.a(nanopb-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/nanopb.framework/nanopb(nanopb-dummy.o)
duplicate symbol OBJC_METACLASS$_PodsDummy_nanopb in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libnanopb.a(nanopb-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/nanopb.framework/nanopb(nanopb-dummy.o)
duplicate symbol OBJC_CLASS$_PodsDummy_GoogleToolboxForMac in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libGoogleToolboxForMac.a(GoogleToolboxForMac-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GoogleToolboxForMac-dummy.o)
duplicate symbol OBJC_METACLASS$_PodsDummy_GoogleToolboxForMac in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libGoogleToolboxForMac.a(GoogleToolboxForMac-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GoogleToolboxForMac-dummy.o)
ld: 7 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/x86_64/txc normal x86_64
cd "/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios"
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk -L/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator -L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/GoogleToolboxForMac -L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/nanopb -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseDynamicLinks/Frameworks -F/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/Pods/FirebaseInstanceID/Frameworks -Ftxc/Plugins/cordova-plugin-firebase -filelist /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/x86_64/txc.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/x86_64/txc_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lc++ -lnanopb -lsqlite3 -lz -framework AssetsLibrary -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseNanoPB -framework MessageUI -framework QuartzCore -framework StoreKit -framework SystemConfiguration -weak_framework WebKit -ObjC -lGoogleToolboxForMac -lc++ -lnanopb -lsqlite3 -lz -framework AssetsLibrary -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseNanoPB -framework MessageUI -framework QuartzCore -framework StoreKit -framework SystemConfiguration -weak_framework WebKit -Xlinker-sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/txc.app-Simulated.xcent /Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libCordova.a-weak_framework ImageIO -framework CoreLocation -framework AVFoundation -weak_framework WebKit -lz -weak_framework AddressBook -weak_framework AddressBookUI -framework MediaPlayer -framework CoreVideo -weak_framework Social -weak_framework MessageUI -framework UserNotifications -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseNanoPB -framework GoogleToolboxForMac -framework nanopb -framework Protobuf -framework FirebaseMessaging -framework FirebaseCrash -framework FirebaseRemoteConfig -framework FirebaseABTesting -framework FirebaseAuth -framework GTMSessionFetcher -framework FirebasePerformance -framework FirebaseISASwizzler -framework FirebaseMethodSwizzler -lPods-txc -Xlinker -dependency_info -Xlinker /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/x86_64/txc_dependency_info.dat -o /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/x86_64/txc
ld: warning: directory not found for option '-L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Products/Release-iphonesimulator/nanopb'
duplicate symbol OBJC_CLASS$_PodsDummy_nanopb in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libnanopb.a(nanopb-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/nanopb.framework/nanopb(nanopb-dummy.o)
duplicate symbol OBJC_METACLASS$_PodsDummy_nanopb in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libnanopb.a(nanopb-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/nanopb.framework/nanopb(nanopb-dummy.o)
duplicate symbol OBJC_CLASS$_PodsDummy_GoogleToolboxForMac in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libGoogleToolboxForMac.a(GoogleToolboxForMac-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GoogleToolboxForMac-dummy.o)
duplicate symbol OBJC_METACLASS$_PodsDummy_GoogleToolboxForMac in:
/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator/libGoogleToolboxForMac.a(GoogleToolboxForMac-dummy.o)
The Xavier's Connect/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GoogleToolboxForMac-dummy.o)
ld: 7 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/i386/txc normal i386
Ld /Users/vc-pc-39/Library/Developer/Xcode/DerivedData/The_Xavier's_Connect-azijmyzvyjbdejdvqzpggfsfvxqv/Build/Intermediates.noindex/txc.build/Release-iphonesimulator/txc.build/Objects-normal/x86_64/txc normal x86_64
(2 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/cordova/build-release.xcconfig,-workspace,The Xavier's Connect.xcworkspace,-scheme,The Xavier's Connect,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/vc-pc-39/Documents/Project/new-clone/firebase-chatapp/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova build ios --release (exit code 1).

Ionic Info:
cli packages: (/usr/local/lib/node_modules)

@ionic/cli-plugin-proxy : 1.5.8
@ionic/cli-utils        : 1.19.2
ionic (Ionic CLI)       : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.2
ios-sim    : 6.1.2
Node       : v8.9.3
npm        : 2.15.12
OS         : macOS High Sierra
Xcode      : Xcode 9.3 Build version 9E145

Could not find compatible version for dependency Firebase/Analytics

ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN="xxx.xxx.xxx" --variable PAGE_LINK_DOMAIN="xxx.page.link" --verbose

Errors out due to:

[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
  In Podfile:
    Firebase/Analytics (~> 6.3.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (~> 6.3.0)`.

If I update my platforms/ios/Podfile to use 6.11.0 like:

	pod 'Firebase/Analytics', '6.11.0'
	pod 'Firebase/DynamicLinks', '6.11.0'

then everything is hunky dory for pod install. Is there a way to specifically override this plugin's plugin.xml podspec versions for these two plugins in my config.xml?

Andoid build error

Hi, i always get this error when i build for android.

......../android/app/src/main/java/by/chemerisuk/cordova/firebase/FirebaseDynamicLinksPlugin.java:104: error: cannot find symbol
builder.setDomainUriPrefix(params.optString("domainUriPrefix", this.domainUriPrefix));
^
symbol: method setDomainUriPrefix(String)
location: variable builder of type Builder
1 error

FAILURE: Build failed with an exception.

Thaks before.

use of undeclared identifier FIRDynamicLinks

If anyone encounters this error during build on ios, the following helped.

Add this to podfile manually:
pod 'Firebase/DynamicLinks', '6.3.0'

Add this to FirebaseDynamikLinksPlugin.h under @import Firebase;:
@import FirebaseDynamicLinks;

I don't know why this happens, haven't got time to investigate yet.

firebase-core missing for Android?

This plugin installs Firebase/Core on iOS, but there is not declaration to install firebase-core on Android like this:
<framework src="com.google.firebase:firebase-core:16.0.6" />

Indeed, unless I add that declaration to my own plugin, then this build error occurs:
The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.

Should that be added to this plugin?

'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

I am having some trouble building my app after adding this plugin to my solution, so now I started from scratch

First I created a blank ionic project

ionic start firebasetest blank

after building this everything was ok

then I added this plugin and the Ionic wrapper
ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="test.com" --variable PAGE_LINK_DOMAIN="mytest.page.link"

and

npm install --save @ionic-native/firebase-dynamic-links

and are now getting the missing file error
/Users/thorvald/firebasetest/platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRLogger.m:18:9: fatal error: 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
#import <GoogleUtilities/GULAppEnvironmentUtil.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

My configuration:
Ionic:

ionic (Ionic CLI) : 4.3.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 5 other plugins)

System:

ios-deploy : 2.0.0
ios-sim : 5.0.13
NodeJS : v6.11.1 (/usr/local/lib/node_modules/node/lib/node_modules/node/bin/node)
npm : 6.4.1
OS : macOS Sierra
Xcode : Xcode 9.1 Build version 9B55

my pod file contains

DO NOT MODIFY -- auto-generated by Apache Cordova

platform :ios, '8.0'
target 'MyApp' do
project 'MyApp.xcodeproj'
pod 'Firebase/Core', '> 5.0'
pod 'Firebase/DynamicLinks', '
> 5.0'
end

What am I missing?

How to test the plugin

Hi,

I'm a little bit confused about how I can test if this plugin works. (I'm testing on iOS)

I have the ionic-plugin-deeplinks plugin installed and used it to handle deeplinks. Now I also added this plugin.

When I open a dynamic link, I can see that the ionic-plugin-deeplinks callback is called with a dynamic link, but the callback of this plugin is never called. I wonder if this is due to an incompatibility of those 2 plugins, or if it's something else.

Also, if on the firebase console I select "If app not installed > Open in App Store", it seems to ALWAYS open the app store, regardless if the live version from the store, or the new test version with dynamiclinks is installed. Can I only test this if my app (the one that includes the dynamic link plugin) is live on production?

Last question, what should the value for the Associated Domains be?
After compiling the plugin, it looked like this:
applinks:subdomain.mydomain.com

But I read on stackoverflow somewhere that it should be the page link url:
applinks:myname.page.link

Which one is needed?

Thanks for your help

Dynamic Link Event on Install/Open

Hi, I can't find this in the documentation. One of Dynamic Links option is tracking installs from invited users - users that download the app via dynamic link. Is there any event with payload after install or. first opening?

Thanks!

Issue with prod building on Ionic

I have a VERY strange bug which I have absolutely no idea how to debug.

When building my ionic app and launching on my Android, it works just fine. But, when I add the --prod flag - which I do every time I want to show something to the customer - I have that angular error :

 main.5e301c2a6dc3a49ec613.js:1 ERROR Error: StaticInjectorError[t -> e]: 
  StaticInjectorError(Platform: core)[t -> e]: 
    NullInjectorError: No provider for e!
    at t.get (main.5e301c2a6dc3a49ec613.js:1)
    at main.5e301c2a6dc3a49ec613.js:1
    at t (main.5e301c2a6dc3a49ec613.js:1)
    at t.get (main.5e301c2a6dc3a49ec613.js:1)
    at main.5e301c2a6dc3a49ec613.js:1
    at t (main.5e301c2a6dc3a49ec613.js:1)
    at t.get (main.5e301c2a6dc3a49ec613.js:1)
    at oi (main.5e301c2a6dc3a49ec613.js:1)
    at t.get (main.5e301c2a6dc3a49ec613.js:1)
    at Qi (main.5e301c2a6dc3a49ec613.js:1)

And the app doesn't load at all, remains blank. Not very helpfull - which is expected since it's --prod.

When it becomes interesting, it's that whenever I remove the cordova-plugin-firebase-dynamiclinks from app.component, everything works perfectly. What gives ? Why is there a problem with the plugin under prod env ?

did not get response from the createDynamicLink

did not getting any response from the method createDynamicLink.anything wrong

installed the plugin with app_domain="promotion.domain.com" and PAGE_LINK_DOMAIN=""*.page.link"

anything iam doing wrong in this.

Meaning of FIREBASE_DYNAMIC_LINKS_VERSION

I am unclear on the meaning of FIREBASE_DYNAMIC_LINKS_VERSION. A default install of 0.13.2 gave me a value of 11.6.+ for this. Some previous version that ran successfully before I entered version madness had a value of 11.0+. A build now gives me the message "All firebase libraries must be either above or below 14.0.0". The problem is, I don't know what this magic 14.0.0 number is a version of--all I know is the version of Firebase which I use in my Angular app, which is 5.0.4. What is this version referring to, and what it the current value incompatible with, and what do I need to do to fix this?

I installed cordova_plugin-firebase-analytics, which has a FIREBASE_CORE_VERSION of 16.0+. Should I kick that down to 11, or kick the 11 for dynamic links up to 16, or something else?

When I change the <variable name="FIREBASE_VERSION" in config.xml to 16.0.+, then when I build somebody is rewriting this to 11.6.+.

Object(...) is not a function at FirebaseDynamicLinks.onDynamicLink

vendor.js:2134 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
at FirebaseDynamicLinks.onDynamicLink (vendor.js:81115)
at main.js:201
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:5445)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (vendor.js:5436)
at t.invokeTask (polyfills.js:3)
at c (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (vendor.js:5436)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at o (polyfills.js:3)

When i run the app i stuck with this error. Unfortunately i didn't find any solution for this error

app.component.ts

import { Component, ViewChild } from '@angular/core';
import { Platform, Nav } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import {Page1Page} from '../pages/page1/page1';

import { HomePage } from '../pages/home/home';
import { FirebaseDynamicLinks } from '@ionic-native/firebase-dynamic-links/ngx';
import { Observable } from 'rxjs';

@Component({
  templateUrl: 'app.html'
})
export class MyApp {
  @ViewChild('nav') nav: Nav;
  rootPage:any = HomePage;

  constructor(public platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen,private firebaseDynamicLinks: FirebaseDynamicLinks) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      statusBar.styleDefault();
      splashScreen.hide();


    });
  }

  ngOnInit() {
    //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
    //Add 'implements OnInit' to the class.
    this.platform.ready().then(() => {
      this.firebaseDynamicLinks.onDynamicLink()
      .subscribe((data) => console.log(data), (error) => console.log(error));
    });
  }
}

this is how i used onDynamicLink() function in my component

Here is my Package.json

{
  "name": "deeplink",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "start": "ionic-app-scripts serve",
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint"
  },
  "dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@ionic-native/core": "~4.20.0",
    "@ionic-native/firebase-dynamic-links": "^5.16.0",
    "@ionic-native/splash-screen": "~4.20.0",
    "@ionic-native/status-bar": "~4.20.0",
    "@ionic/storage": "2.2.0",
    "cordova-android": "8.1.0",
    "cordova-plugin-firebase-dynamiclinks": "4.0.1",
    "cordova-support-android-plugin": "1.0.1",
    "cordova-support-google-services": "1.3.2",
    "ionic-angular": "3.9.5",
    "ionicons": "3.0.0",
    "rxjs": "5.5.11",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.29"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.2",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^4.1.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-firebase-dynamiclinks": {
        "APP_DOMAIN": "deeplink.com",
        "PAGE_LINK_DOMAIN": "page1.page.link",
        "FIREBASE_ANALYTICS_VERSION": "17.2.+",
        "FIREBASE_DYNAMIC_LINKS_VERSION": "19.0.+"
      }
    },
    "platforms": [
      "android"
    ]
  }
} 

Please help me to solve this error, Thanks in advance

Dynamic Link not working on Facebook.

Dynamic links stopped working on Facebook App, it will open the facebook internal browser with a blank page.
Using version 2.0.2.
By the way... it was working a couple of weeks ago.
Anyone having the same problem?

error

iOS error when opening link in APP_DOMAIN

I'm doing a basic proof-of-concept in iOS simulator. I've created my dynamic link as follows (anonymizing my app name here):
https://example.page.link/abc => https://example.com/123

If I open the link "https://example.page.link/abc", then the link opens my app and I can get the url data via the onDynamicLink link. All is good in this case.

But if I open the link "https://example.com/123" (app installed), then the app also does open, but I don't get the event. Even worse, I get an EXC_BAD_ACCESS error with an infinite recursion loop on the AppDelegate(FirebaseDynamicLinksPlugin) identity_application function going over 40,000 stack frames deep. See attached screenshots of stacktrace below. Now, perhaps that isn't supported, but then why does the plugin.xml add an entitlement for applinks:APP_DOMAIN? And certainly it shouldn't crash like this.

Am I doing something wrong?

screen shot 2019-02-03 at 11 43 21 am

screen shot 2019-02-03 at 12 00 14 pm

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.