如何使用 Flutter 中所有可用的消息传递应用程序发送应用程序推荐消息
How to send app referal message using all available messaging apps in Flutter
我开发了一个 android 应用程序,它有一个按钮,单击该按钮它会发送一条带有现成模板的消息。在发送消息之前,它会提示用户他们希望消息来自哪个应用程序。我在我的 android 应用程序中使用了它,它工作得非常好:
sendIntent.setAction(Intent.ACTION_SEND)
sendIntent.putExtra(Intent.EXTRA_TEXT,"Check out this app :" + PlayStoreURLtoShare);
我还提供了下面的截图:
我想知道如何在 Flutter 中为 Android 和 iOS 设备做同样的事情。
在 flutter 中有一个名为 share
的包。你可以看看here
我开发了一个 android 应用程序,它有一个按钮,单击该按钮它会发送一条带有现成模板的消息。在发送消息之前,它会提示用户他们希望消息来自哪个应用程序。我在我的 android 应用程序中使用了它,它工作得非常好:
sendIntent.setAction(Intent.ACTION_SEND)
sendIntent.putExtra(Intent.EXTRA_TEXT,"Check out this app :" + PlayStoreURLtoShare);
我还提供了下面的截图:
我想知道如何在 Flutter 中为 Android 和 iOS 设备做同样的事情。
在 flutter 中有一个名为 share
的包。你可以看看here