# App-management package not returning data as expected

**URL:** <https://forum.wixstudio.com/t/app-management-package-not-returning-data-as-expected/62954>\
**Category:** Ask the community\
**Tags:** wix-application, wix-blocks, code, question\
**Created:** [September 21, 2024, 2:49pm UTC](https://forum.wixstudio.com/t/app-management-package-not-returning-data-as-expected/62954 "2024-09-21T14:49:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pixobe\_Software](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pixobe_software/32/90588_2.png) [@Pixobe\_Software](https://forum.wixstudio.com/u/Pixobe_Software)\
**Post date:** [September 21, 2024, 2:49pm UTC](https://forum.wixstudio.com/t/app-management-package-not-returning-data-as-expected/62954/1 "2024-09-21T14:49:29Z")

</div>

**Question:**  
I am trying to get app instance information using @wix/app-management.

**Product:**  
Velo/ Block editor

**What are you trying to achieve:**  
I am trying to [Detect a user’s free trial activity](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/set-up-and-manage-free-trials#step-2--detect-a-users-free-trial-activity), as explained.

## I need to check if user is on trial or not using the below code

`1import { appInstances } from “@wix/app-management”;2  
3async function getAppInstance() {4 const response = await appInstances.getAppInstance();5}

// response.instance is always undefined  
`

**What have you already tried:**

I tried to get data as explained in the document but instead of instance details I can see some function being returned when I console log.

I am trying to invoke it inside my Wix Widget block and also tried in backend module code.

**Additional information:**  
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]
