Solved

App Bridge - Close cart Pos action only available with Android v5.50.0 or above

policenauts1
Trailblazer
174 13 39

I am trying to close my embedded app after a certain action and it's not working: https://shopify.dev/tools/app-bridge/actions/pos

 

The link says this action is only available on Android for POS v5.50.0 or above. I uninstalled and reinstalled the app and it still says POS v3.50.0.

 

What is version v5.50.0 and how do I install it? I am using a Pixel 1 running Android 10. 

Accepted Solution (1)

policenauts1
Trailblazer
174 13 39

This is an accepted solution.

I solved it, the documentation appears to be incorrect (also referenced here:https://community.shopify.com/c/Shopify-APIs-SDKs/Suggestions-for-Shopify-App-Bridge-POS-documentati...)

 

 pos.dispatch(Pos.Action.CLOSE);

as it's written in the documentation, doesn't work.

 

 pos.dispatch(Pos.ActionType.CLOSE);

as it was originally written, apparently, does work.

View solution in original post

Replies 2 (2)

policenauts1
Trailblazer
174 13 39

This is an accepted solution.

I solved it, the documentation appears to be incorrect (also referenced here:https://community.shopify.com/c/Shopify-APIs-SDKs/Suggestions-for-Shopify-App-Bridge-POS-documentati...)

 

 pos.dispatch(Pos.Action.CLOSE);

as it's written in the documentation, doesn't work.

 

 pos.dispatch(Pos.ActionType.CLOSE);

as it was originally written, apparently, does work.

andrew-apperley
Shopify Staff (Retired)
21 5 4

Hey @policenauts1 ,

Thanks for bringing this to our attention. We have gone ahead and updated both the proper syntax for POS Close and the correct version of Android that's required to use the action.

I do apologize for causing you any headaches along the way.

 

Enjoy the rest of your day.

To learn more visit the Shopify Help Center or the Community Blog.