Issue
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? Here is a link to the Amazon Shopping app: https://play.google.com/store/apps/details?id=com.amazon.mShop.android.shopping&hl=en
In addition, how would it be possible to pass a deep-link parameter so that it lands on a specific product page? Thank you!
Solution
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.
Answered By - Kazuki
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.