app-bundle-samples icon indicating copy to clipboard operation
app-bundle-samples copied to clipboard

Problem with InstantApps.showInstallPrompt and postInstallIntent

Open svsorokina opened this issue 5 years ago • 2 comments

postInstallIntent lose bundle extras after installation.

val intent: Intent?
intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://www.test.ru/activity/main/"))
intent.setPackage(context.packageName)
intent.addCategory(Intent.CATEGORY_BROWSABLE)
intent?.putExtra(EXTRA_FIRST, data1)
intent?.putExtra(EXTRA_SECOND, data2)      

But when I try to get data from intent intent.extras in installed app the bundle is empty.

What am I doing wrong or it's a problem of showInstallPrompt?

svsorokina avatar Sep 25 '20 07:09 svsorokina

@keyboardsurfer @wojtek-kalicinski May be you can help? It's real problem for us.

svsorokina avatar Nov 16 '20 11:11 svsorokina

I don't see anything wrong with your implementation here, according to the documentation. It seems like you're describing an issue that is not directly related to the sample. Please use the Google issue tracker or [StackOverflow](stackoverflow.com] for this.

keyboardsurfer avatar Nov 16 '20 17:11 keyboardsurfer