Firebase Invites는 앱에서 Firebase Dynamic Links를 수신하는 메커니즘과 이 링크를 SMS 또는 이메일로 공유하는 기능을 제공했습니다. 입소문을 통해 앱 사용자를 늘릴 수 있도록 Firebase Invites를 개발했지만 시간이 지나면서 여러분이 현재의 Firebase Invites보다 더 효과적인 방법으로 사용자가 친구와 앱을 공유하도록 유도하고 있음을 알게 되었습니다.
Firebase Invites 사용량은 줄었지만 여전히 Firebase Dynamic Links를 사용자 간 공유 솔루션의 주요 수단으로 많이 사용하고 있다는 사실도 확인되었습니다. 그에 따라 Google에서는 앱에 사용자 간 공유 기능을 빌드하는 데 Firebase Dynamic Links가 가장 좋은 수단이 되도록 집중적으로 노력하고 있습니다. 이러한 변화의 일환으로 Firebase Invites 기능의 지원을 중단했으며 2020년 1월 24일부터는 지원이 전면 종료됩니다.
중단되면 일어나는 일과 발생하는 영향
2020년 1월 24일부터는 사용자가 더 이상 Firebase Invites를 주고 받을 수 없으며 초대 링크의 전송 및 수신 호출 시 초대 백엔드 서비스에서 오류 응답을 반환하기 시작합니다.
현재 SDK에는 이러한 서버 응답에 대한 정상적인 실패 사례를 보장하는 데 도움이 되는 오류 처리가 포함되어 있으므로 사용자가 비정상 종료 없이 앱을 계속 사용할 수 있지만, Firebase Invites를 더 이상 사용하지 않고 맞춤 공유 솔루션과 함께 Firebase Dynamic Links를 사용하는 대체 솔루션으로 전환하는 것이 좋습니다.
그 방법은 다음과 같습니다.
Firebase Dynamic Links로 초대 링크 만들기
먼저, 사용자가 친구와 공유할 수 있는 Dynamic Link를 만듭니다. Firebase Invites를 설정하는 방법과 유사하기 때문에 이미 이 단계는 익숙할 것입니다.
사용자가 소셜 네트워크를 통해 앱을 공유하여 공유되는 URL의 디자인을 맞춤설정하는 경우 링크에 소셜 메타데이터를 추가하는 등 동적 링크에 특정 매개변수를 추가할 수도 있습니다.
공유 솔루션 빌드
그런 다음, 사용자가 친구와 링크를 공유할 수 있도록 공유 솔루션을 빌드합니다. 빌드할 솔루션은 Firebase Invites에 있는 이전 기능을 대체할 공유 기능을 어떻게 제공하느냐에 따라 달라지겠지만 대부분의 모바일 앱은 이미 플랫폼에서 기본적으로 제공하는 기능을 활용할 수 있습니다.
Android의 경우 SMS 및 이메일 공유는 물론 다른 유명 소셜 네트워크 및 메시징 앱까지 지원해 주는 간단한 솔루션을 만들려면 작업이 Intent.ACTION_SEND와 같은 작업 세트를 포함한 일반 인텐트를 사용하면 됩니다. 그러면 사용자가 설치한 앱이 공유 인텐트를 처리할 수 있기만 하면 앱의 데이터를 해당 앱과 간편하게 공유할 수 있습니다.
다음 예와 유사한 코드라면 정상적으로 작동할 것입니다. 자체 코드에 상수 문자열 리소스를 사용하는 것이 좋습니다.
IntentsendIntent=newIntent();sendIntent.setAction(Intent.ACTION_SEND);sendIntent.putExtra(Intent.EXTRA_TEXT,"Here's a new lesson for"+" learning more Miwok vocabulary:\n\n"+dynamicLink);sendIntent.putExtra(Intent.EXTRA_SUBJECT,"Let's Learn Miwok!");sendIntent.setType("text/plain");startActivity(Intent.createChooser(sendIntent,getResources().getText(R.string.send_to)));
iOS 개발자라면 UIActivityViewController를 사용해 데이터의 일부로 생성된 링크를 커스텀 VC에 전달하면 됩니다. 이 방법은 아래 화면과 유사한 공유 흐름을 제공합니다.
앱에서 Dynamic Link 수신
끝으로 Firebase 초대 사용이 종료된 후 앱에서 사용자 간 공유를 제공하기 위한 마지막 단계는 앱에서 Dynamic Link를 받는 것입니다.
Android의 경우 프로세스에 변함이 없으므로 변경사항이 별로 없습니다. 단, Firebase Invites 사용이 종료되면 초대 ID도 없어지므로 앱에서 호출 시 FirebaseAppInvite invite = FirebaseAppInvite.getInvitation(data)를 통해 초대 ID를 추출하는 호출을 삭제해야 합니다. 이와 관련된 자세한 내용은 Android 앱에서 동적 링크 받기를 참고하세요.
Unity 개발자의 경우 위의 설명에 상응하는 솔루션과 여러 오픈소스 라이브러리를 통해 사용자 간 공유 기능을 이전할 수 있습니다. 적절한 솔루션을 제공하는 데 도움이 필요한 경우 아래 연결된 지원 리소스에 문의하세요.
Firebase Invites는 Google에서 자부심을 갖고 만든 유용한 도구였습니다.
하지만 미래 지향적 관점에서 사용자의 앱 초대를 유도하는 데 있어 더욱 큰 유연성과 제어를 지원하기 위한 Firebase Dynamic Links 개발에 전념할 수 있게 되어 기쁘게 생각합니다. Firebase Dynamic Links 및 맞춤 공유 솔루션 설정에 대한 질문은 StackOverflow 또는 그 밖의 지원 포럼에 문의하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-06(UTC)"],[],[],null,["\u003cbr /\u003e\n\n| Firebase Invites is deprecated. On **January 24th, 2020** , we will discontinue support for Firebase Invites. You will be able to use [Firebase Dynamic Links](/docs/dynamic-links) with a custom sharing solution.\n\nFirebase Invites provided both a mechanism for receiving\n[Firebase Dynamic Links](/docs/dynamic-links) in your app, as well as a\nfeature to share that link via SMS or email. We developed\nFirebase Invites to help you grow your app users through word of mouth,\nbut over time, we learned that you found better ways to encourage users to share\ntheir favorite apps with their friends, beyond what Firebase Invites does\ntoday.\n\nWe also saw that while usage of Firebase Invites dropped, many of you\nwere still using Firebase Dynamic Links as the key ingredient of your user-to-user\nsharing solution. So, we're strengthening our focus and increasing our effort to\nmake Firebase Dynamic Links the best way to build user-to-user sharing capabilities\ninto your app. As part of this shift, we have deprecated the\nFirebase Invites feature, and will discontinue support starting on\n**January 24th, 2020**.\n\nWhat does this mean and how does it impact me?\n\nStarting on January 24th, 2020, your users will no longer be able to send\nor receive Firebase Invites, and the invites backend service will start\nreturning error responses when making calls to send and receive an invite link.\nThe current SDKs include error handling to help ensure graceful failure cases\nfor these server responses, so your users will be able to continue using your\napp without crashing, but we recommend that you no longer use\nFirebase Invites, and switch to an alternative solution using\nFirebase Dynamic Links with a custom sharing solution.\n\nHere is how to do that!\n\nCreate invitation links with Firebase Dynamic Links\n\nFirst, [Create a Dynamic Link](/docs/dynamic-links/create-links) that your\nusers can share with their friends. The good news is that you're likely familiar\nwith this step already because it's similar to how you set up Firebase Invites.\nBut you can also add specific parameters to your Dynamic Link, such as\n[adding social metadata to your links](/docs/dynamic-links/link-previews) if\nyour users share your app via a social network to customize the appearance of\nthe URL that gets shared.\n\nBuild a sharing solution\n\nNext, build your sharing solution for your users to be able to share that link\nwith their friends. What you will want to build here will vary depending on how\nyou want to provide the sharing feature that will replace the previous one in\nFirebase Invites, but for most mobile apps you can take advantage of\nfeatures already built into the platform.\n\nFor Android, one simple solution that covers both SMS and email sharing, as well\nas other popular social network and messaging apps, is to use a generic intent\nwith an action set as `Intent.ACTION_SEND`. This\nprovides a convenient way to share data from your app to any app the user has\ninstalled that can handle a share intent.\n\nSomething similar to the following example should work here (recommending that\nyou use constant string resources in your own code): \n\n```css+lasso\nIntent sendIntent = new Intent();\nsendIntent.setAction(Intent.ACTION_SEND);\nsendIntent.putExtra(Intent.EXTRA_TEXT, \"Here's a new lesson for\" +\n \" learning more Miwok vocabulary:\\n\\n\" + dynamicLink);\nsendIntent.putExtra(Intent.EXTRA_SUBJECT, \"Let's Learn Miwok!\");\nsendIntent.setType(\"text/plain\");\nstartActivity(Intent.createChooser(sendIntent,\n getResources().getText(R.string.send_to)));\n```\n\nFor a fuller example and more details, check out this guide for [sending simple\ndata to other apps](https://developer.android.com/training/sharing/send).\n\nThe code snippet above will generate something like invitation flow shown in the\nscreens below:\n\nFor iOS developers, you can use a\n`UIActivityViewController`, passing in the link\ncreated as part of the data to the custom VC. This method would provide a\nsharing flow similar to the screens below:\n\nReceive a Dynamic Link in your app\n\nFinally, the last step to provide user-to-user sharing for your app after the\nsunset is in receiving a Dynamic Link in your app.\n\nFor Android, this process remains the same so you won't need to change much\nhere. The only difference is that without Firebase Invites, there will no\nlonger be an invitation ID, and so you would need to remove the call to extract\nthe invite ID via `FirebaseAppInvite invite = FirebaseAppInvite.getInvitation(data)`,\nif your app is making that call. For more details on this piece, please see the\nguide on [Receiving Dynamic Links in your Android app](/docs/dynamic-links/android/receive).\n\nFor iOS, this would require changing from the [FIRReceivedInvite](/docs/reference/ios/firebaseinvites/api/reference/Classes/FIRReceivedInvite)\nobject to the [FIRDynamicLink](/docs/reference/ios/firebasedynamiclinks/api/reference/Classes/FIRDynamicLink)\nobject, which both contain similar data. Please see the guide on\n[Receiving Dynamic Links in your iOS app](/docs/dynamic-links/ios/receive) for\nmore details.\n\nFor Unity developers, there are a number of open-source libraries and equivalent\nsolutions as those described above to migrate your user-to-user sharing\nfunctionality. If you need any assistance on providing a suitable solution,\nplease reach out to the support resources linked further below.\n\nFirebase Invites has been a great tool that we're proud to have built.\nAs we look towards the future, we're excited to double down on making\nFirebase Dynamic Links even better so you have more flexibility and control over how\nyou encourage users to invite others to your app. If you have any questions\nabout setting up your Firebase Dynamic Links and custom sharing solutions, please\nreach out on [StackOverflow](https://stackoverflow.com/questions/tagged/firebase-dynamic-links), or any of\nour [additional support forums](https://firebase.google.com/support/)."]]