Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different template base url and uanble to update custom field #30

Open
a-rfl opened this issue May 6, 2024 · 0 comments
Open

Different template base url and uanble to update custom field #30

a-rfl opened this issue May 6, 2024 · 0 comments

Comments

@a-rfl
Copy link

a-rfl commented May 6, 2024

Context

We have an experience for the app that display a modal to the user to collect specific optin. The user can either :

  • closed the modal -> slide the modal to close
  • accept and close -> when clicking this option, the template send a request to update a custom field and then send a postMessage to the parent to trigger the closing function

Issue

A short while ago, we're not sure since when exactly, we noticed that the template base url changed and was different between IOS and Android. It changed from "https://buy-eu.piano.io" to "https://api-eu.piano.io".

This can be worked around by creating different templates for IOS and Android, but it also impacted the custom field update.
The request base url, we use, is the following : "https://experience-eu.piano.io/".
We also worked around that second issue, by forcing the "https://buy-eu.piano.io" on to the templates displayed on IOS.

Questions

  • Is there an explanation on why the template base url have an impact on a request with a different base url inside a Piano template ?
  • Why did the template base url changed ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant