GoHighLevel / ghl-marketplace-app-template

29 stars 26 forks source link

Calling REQUEST_USER_DATA when testing this app template? #7

Closed chriscohoat closed 1 year ago

chriscohoat commented 1 year ago

Hi thanks for putting this together.

When running this locally and testing the "Custom Pages" it runs great:

CleanShot 2023-11-11 at 14 24 15

But I'm wondering why window.parent.postMessage({ message: "REQUEST_USER_DATA" }, "*"); in src/ui/src/ghl/index.js doesn't seem to result in any data received. Does this only work once the app is running on a deployed site?

chriscohoat commented 1 year ago

Note for a future reader ... I had to generate an SSO key:

CleanShot 2023-11-11 at 17 48 06@2x

After doing this the postMessage call succeeds.