Why can't I access App Bridge actions in my POS application?

Why can't I access App Bridge actions in my POS application?

Tayo-Adegoke
Visitor
2 0 0

I am working on an embedded POS application, where I hope to access all the information of all products added to the cart at a given time. I currently have the embedded application accessible through a POS link which opens up fine in the mobile app. However, I cannot seem to access many App bridge actions and I do not know what I am doing wrong. 

 

Running the code below, the application says I am in the "main" context and according to the documentation, certain features are unavailable depending on the application's "context". 

useEffect(() => {
    app.getState("context").then(function (context) {
      console.log("Context is: ", context); // Context is: Main
    });

    app.featuresAvailable([Group.Cart]).then(function (state) {
      console.log(state);
    });
  });

 Screen Shot 2021-12-08 at 5.59.33 AM.png

 

 

Is there something I need to do to be able to access these actions?  I cannot do so at the moment. Also, when I open the application from a POS link in the mobile app, the context still logs as "main" and I read that the context changes, offering different features, depending on where the application is opened up. I would like to know how I can access these features and actions for use in my application please, I have tried everything from the previous responses to similar issues here and nothing has worked for me. Thanks 

Replies 0 (0)