Read Query Param by Key
Goal
Extract a specific query parameter value from the incoming link using queryKeys + queryValues.
Actions Used
DeepLinkServicesOnUniversalLinkOpenorDeepLinkServicesOnCustomSchemeUrlOpen(listener, persistent)DeepLinkServicesGetUniversalLinkResultorDeepLinkServicesGetCustomSchemeResult(extractor)
Variables Needed
queryKeys (Array: String)
queryValues (Array: String)
value (String) (example: campaignId / token)
Implementation Steps
On listener
receivedEvent, call the matchingGet*Resultaction to populatequeryKeysandqueryValues.Find the parameter:
Use PlayMaker Array actions to loop
i = 0..queryKeys.Length-1If
queryKeys[i] == "campaign"then setvalue = queryValues[i]
Example URLs
Universal:
https://game.com/promo?campaign=summer2024Custom scheme:
myapp://oauth-callback?token=xyz
Notes
queryKeys and queryValues are parallel arrays; use the same index for both.
Last updated
Was this helpful?