postInstallIntent lose bundle extras after installation. I create postInstallIntent this way:
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)
Than call it:
InstantApps.showInstallPrompt(
activity,
intent,
REQUEST_CODE,
INSTALL_REFERRER
)
It opens requested activity, 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?