I have been trying to get tiles working, but I am having a hard time retrieving the config that I saved in config.html in view.html.
Saving the config seems to work fine! jive.tile.onOpen always has what I previously saved.
My server is sent the pushData on tile registration. Am I mistaken that the config data is stored in the Jive instance when "dataProviderKey": "internal" is set? Do I actually need to store that pushData on my server and retrieve it from my server whenever the tile is loaded? I feel this is not the case, as config.html has access to the previously stored pushData.
I have tried both with and without using dataProviderKey and sampleData in the definition.json with no different result.
The pushData is sent over to my server.
The console.log of config in view.html does not contain the pushData that config.html seems to always contain.
I must be missing something pretty basic - I just can't figure out what it is!
Thanks for any help you can provide.
Figured it out - I just needed to read the docs more closely!
For anyone else who gets hung up on this:
From the docs: Creating Custom View Tiles
In order to pass configuration information to your view, you need to call jive.tile.close with a configuration object. This object must contain a "data" object within it. Everything in that data object gets passed into your view function.