Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 98933ac

Browse files
Allow usage of Dynamic Links without Invites #873
1 parent 372bdfb commit 98933ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/firebase.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const GOOGLE_SIGNIN_INTENT_ID = 123;
2020
const REQUEST_INVITE_INTENT_ID = 48;
2121

2222
const messagingEnabled = lazy(() => typeof(com.google.firebase.messaging) !== "undefined");
23-
const dynamicLinksEnabled = lazy(() => typeof(com.google.android.gms.appinvite) !== "undefined");
23+
const dynamicLinksEnabled = lazy(() => typeof(com.google.firebase.dynamiclinks) !== "undefined");
2424

2525
(() => {
2626
// note that this means we need to 'require()' the plugin before the app is loaded
@@ -499,8 +499,8 @@ firebase.addOnMessageReceivedCallback = callback => {
499499
firebase.addOnDynamicLinkReceivedCallback = callback => {
500500
return new Promise((resolve, reject) => {
501501
try {
502-
if (typeof(com.google.android.gms.appinvite) === "undefined") {
503-
reject("Uncomment invites in the plugin's include.gradle first");
502+
if (typeof(com.google.firebase.dynamiclinks) === "undefined") {
503+
reject("Uncomment dynamic links in the plugin's include.gradle first");
504504
return;
505505
}
506506

src/firebase.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ firebase.addOnDynamicLinkReceivedCallback = callback => {
329329
return new Promise((resolve, reject) => {
330330
try {
331331
if (typeof(FIRDynamicLink) === "undefined") {
332-
reject("Enable FIRInvites in Podfile first");
332+
reject("Enable FIRInvites in the Podfile first");
333333
return;
334334
}
335335

0 commit comments

Comments
 (0)