android / android/app-bundle-samples

Problem with InstantApps.showInstallPrompt and postInstallIntent

Open
#84 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
735
Forks
348
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Research direction

Start with the Intent construction shown in the issue and trace how showInstallPrompt delivers postInstallIntent into the installed app. Compare the extras before installation and when the app receives the intent; done means establishing whether the extras are expected to survive or documenting the confirmed cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.