How to query app and asset details?

Modified on Mon, 8 Jan, 2018 at 9:40 AM

To query app and asset details you can use the following code snippet

<script>
function handleGetAppInfo()
{
document.ocaltion = "ni-action:appinfo?cb=cbAppInfo";
}
</script>

<!-- Copyright (c) 2018 The Interact Technology Group.
THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All rights reserved. -->

 Which should return a JSON with data including the following keys


JSON keys JSON values
appID "MI" for myINTERACT, "NI" for nextINTERACT
appVersion e.g. "4.3.2" - Application version
platform e.g. "iOS" - Application platform
brochureID 1234 or null - Asset ID from SAM, or null if it's not known (e.g. side loaded Asset)
brochureVersionID 12345 or null - Asset version ID from SAM, or null if its not known (e.g. side loaded Asset)
companyID 2222 or null - Company ID from SAM, or null in JSON if its not known (e.g. side loaded Asset)
userID 1245 or null - User ID who created this Asset, or null in JSON if it's not known (e.g. side loaded Asset)
deviceVersion
e.g. ipad 3,4 - Device Model
osVersion
e.g. 10.3.3


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article