0

I submit a Run Configuration for an instantapp module in Android Studio with a Launch URL like https://example.com/?Q1=12345 and it runs fine. The autogenerated code for handleIntent() extracts the intent data and the query. Then I can extract the query parameter, like this:

queryParm=appLinkIntent.getData().getQueryParameter("Q1")

I then try to test passing a second query parameter like https://example.com/?Q1=12345&Q2=67890. The instantApp Activity crashes without even posting a log entry in Logcat that fires at the top of onCreate().

Has anyone been able to pass at least two query paramters to the instantapp? If so, what am I missing?

Prags
  • 2,457
  • 2
  • 21
  • 38
JAW
  • 187
  • 2
  • 13
  • 1
    What happens if you escape the &, like so: `https://example.com/?Q1=12345\&Q2=67890` ? – dchai Mar 16 '18 at 02:19
  • That works! Not only does the Activity not crash but the Q1 and Q2 parameters parse out. Thanks. – JAW Mar 16 '18 at 12:30
  • Can you file a bug to Google, then link to it back in here? It would be helpful for all, thanks! https://issuetracker.google.com/issues/new?component=316045&template=1018787 – Prags Mar 16 '18 at 13:06
  • 1
    I have filed a bug at: https://issuetracker.google.com/75254056 – JAW Mar 16 '18 at 20:09
  • FYI I received this report: dc...@google.com #2 Mar 16, 2018 07:50PM This should have been fixed in Android Studio 3.2 Canary 7. – JAW Mar 19 '18 at 17:46

1 Answers1

1

With Refrence to Google Issues Tracker

Just tested this on Android Studio 3.2 Canary 14 and didn't observe any crashes with using https://example.com/?Q1=12345&Q2=67890 in the Run Configuration.

If any issue persists, please report at Google issue tracker they will re-open to examine.

Prags
  • 2,457
  • 2
  • 21
  • 38
  • FYI I got a msg from Buganizer that the issue was tested successfully in Canary 14. I verified and confirmed that you now do not need to escape the "&" in a multi-term Launch URL Run configuration like example.com/?x=123&y=456 – JAW May 17 '18 at 13:36
  • @JAW Thanks for accepting ans,you can also up-vote it. Thanks – Prags Jul 30 '18 at 08:14