How to open Amazon app from within my app?
So after some more research, based on https://www.appsight.io it seems that the amazon app does not use "amzn://"
url scheme, but "amazonToAlipay://"
. After changing it to this, the UIApplication.shared
opens the Amazon app.
Thanks to @LinusGeffarth and his answer to another related question.
How to open the Amazon AppStore directly from my Android application?
The Amazon app store URI is
amzn://apps/android?
Directing to a particular app would look like
amzn://apps/android?p=com.amazon.mp3
Source: Linking To the Amazon Appstore for Android
How to launch Amazon Shopping app in Android app?
I'd like to be able to launch the Amazon Shopping app from my android
application. How is this possible? What parameters would need to go
into the Intent?
You can use PackageManager#getLaunchIntentForPackage
startActivity(getPackageManager().getLaunchIntentForPackage("com.amazon.mShop.android.shopping"));
In addition, how would it be possible to pass a deep-link parameter so
that it lands on a specific product page?
It depends on whether Amazon app implements deep link and exposes intent-filter
to external app. I assume it's not possible, but maybe you can ask Amazon.
How to launch Amazon app using product link in flutter?
Try below code hope its helpful to you.
You must use url_launcher
package from here add this dependency in your pubspec.yaml file
You can refer my answer here also for open app from URL
create one widget
InkWell(
hoverColor: Colors.transparent,
child: Image.network(
'https://upload.wikimedia.org/wikipedia/commons/d/de/Amazon_icon.png',
width: 70,
height: 70,
),
onTap: () => amazon(),
)
Create ontap function
amazon() async {
const url =
'https://www.amazon.com/';// or add your URL here
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}
Related Topics
Vnfaceobservation Boundingbox Not Scaling in Portrait Mode
Animating Button Allowuserinteraction Not Working
Implementing State Restoration in iOS 14
Checkbox Uitableview with Different Sections
Delegate Seems to Not Be Working, According to the Console
Calling Delegate Function from Appdelegate Not Working
Exception: Cannot Manually Set the Delegate on a Uinavigationbar Managed by a Controller
Completely Unrelated Error Using Coredata
Create Hash in Swift Using Key and Message
How to Send Request from iOS (Swift) to Dialogflow V2 API Without Cloud Functions
How to Use Tap Gesture in Accessibility in Swift
Sinch Integration in Swift Project
Avcapturevideopreviewlayer Add Overlays and Capture Photo in iOS
Calculate New Coordinates with Starting Position and Distance
Generics Type Constraint VS Inheritance