how to share a product from your e commerce app - flutter

is there a way to share my e-commerce app products? like the amazon app. when you click on share. it makes a URL for you, and you can send the URL to everyone.
and if you click on share it gives you this link.
can anyone please help me on how to share my e-commerce app's products

you will have to use two packages for this...
dynamic plugin
share plugin
1. dynamic link
2. share
you use the dynamic link to generate the short link of the product then use share to share it to users. so if user click on it it will automatic bring them to the production...
dynamic video

First, you need to have a route to your product in your app. You probably already have that. If not, you need to build that. There are really too many ways to do that and the one to pick depends on what you did so far in your app and how you handle navigation.
Assuming you are at a point where you can create a link to a product by hand, you can use share_plus to open the device/platform specific sharing dialog in your application and share that link. Check out their example and go from there.

Related

How to know the source of a link and load web app accordingly

I'm making an online ordering web app in Flutter, there's a link to the app on the restaurant website. The app needs to know which restaurant website the customer came from so that it can load the correct menu.
How would you do this? Webhook?
I see two methods:
Referrer, Webbrowsers send a referrer-header. Maybe unstable for privacy browsers. More information
Link-Parameter, give each resturant a unique link (with your-app.com?source=mcdonalds). More information

How to make an Ecommerce app in flutter with Backend?

I'm trying to make an E-commerce app in flutter but I'm facing some difficulty in that app. I want to make two different apps example Admin & User. Admin Will Update Product Information like img, name, price etc & user will just Buy the product or Give Feedback for the Product. Anybody Know Any Resource Or tutorial, THanks in advance
just read the dart lang and GitHub has many projects which you can show and follow
here
for the model, you have to use build_value here
fetching data, you can use Dio library here
Good Luck!!

codename one. How to share a link to your app.

What I want to achieve here is similar to what most apps do, specifically like Youtube. If I share a video on youtube the user gets a link to the video. When the link is clicked the user is automatically taken to the video in the Youtube app (if the user has the app). I want that sort of functionality. My app has different stores on it and information about the store. I want the user to be able to "Share" a store via Whatsapp, sms etc so then when the receiver clicks on the shared link they are automatically taken to that specific store's page INSIDE my app. And if they do not have the app the link must take them to my app's page in the app store to allow them to download it. How do I achieve this in codename one. I looked at the share functionality in the developer doc and the How To section and that only shows me how to share text or images. Not a link to my app.
You can use the ShareButton or it's underlying native share API call (notice this behaves differently on devices as this relies on native functionality).
To share one URL that works on all platforms you need server side code as we have no way of knowing if the guy who will click the link has the same device as you have.
How to make QR code for BOTH Android Market and App Store answers that although it discusses QR codes this is applicable to links as well e.g. http://onelink.to/ looks like it could solve that although I haven't tried their service.
The correct answer to this question was actually URL intercepting. http://www.codenameone.com/blog/intercepting-urls-on-ios-android.html You share a url from your app to an external application. When the user opens that lick in an external application the user is automatically taken to your app if your app intercepts it.

App Store review integration

I'd like to know how to put that menu inside my app that asks the user to review my app and redirects him to App Store to do so. Searched around but couldn't find much information, probably I'm not using the right keywords.
There's a nice library called Appirater for that.
If AppIRater is too heavy for you, you can send them directly to the page by using the format:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID
… where APP_ID is your iTunes numerical application id.

Is it possible to share and see a link using ShareKit in iOS(need the exact way as Web)

I have an app and I am using ShareKit for sharing in Facebook. I am able to share URLs, images and texts to FB using that. But why did the link/url share do not work the same way as when I share a url from Web Facebook. I have got many contents like image in my url and while doing the Share through web I am able to see the image and a small portion of content, but while I am doing it from iPhone using ShareKit, it just gives the heading/title and we need to click on that link(no images or contents).
If anyone know the solution, please help.
When you share a link on the Facebook site it will automatically fetch the URL and display some appropriate images that you can choose from. However, when directly interacting with the API this won't happen. You must provide the image yourself (or Facebook may use the image associated with your application). ShareKit may abstract this away from you, so you might want to look into using the Facebook SDK and Graph APIs directly.
I fixed the issue. Instead of posting(POST) the attachment dialog, just use GET method in the load function and pass the link you want to share. :)