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)));
[[["易于理解","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"]],["最后更新时间 (UTC):2025-09-06。"],[],[],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/)."]]