# Point of Sale API New Android Failure

**URL:** <https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566>\
**Category:** Questions\
**Tags:** point-of-sale-api\
**Created:** [January 6, 2021, 6:36pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566 "2021-01-06T18:36:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cunningryan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/cunningryan/32/320_2.png) [@cunningryan](https://developer.squareup.com/forums/u/cunningryan)\
**Post date:** [January 6, 2021, 6:36pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/1 "2021-01-06T18:36:34Z")

</div>

I’ve got a user encountering this error message on Android, using Chrome in a web app that implements the Point of Sale API.

> Point of Sale API must be started with startActivityForResult() in the same task. It looks like the caller either used startActivity() or used startActivityForResult() from a finished activity or with the FLAG\_ACTIVITY\_NEW\_TASK flag

The user has previously used the same device with no issues and verified that the Square POS app is logged in and working. Also, the usual logout/login, reboot device, etc. steps had no effect. I’m not in the same city as the user, so having to remotely debug and attempt to reproduce, so far with no luck.

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [January 6, 2021, 6:43pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/2 "2021-01-06T18:43:18Z")

</div>

Hi @cunningryan welcome to the forums!

Do you know if this started happening after an update (like either Android OS or POS app itself)? Can you confirm what device, OS, and Square POS version (not the API/SDK, but the base POS application from the play store) the user is using?

---

<div class="post-metadata">

**Author:** ![cunningryan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/cunningryan/32/320_2.png) [@cunningryan](https://developer.squareup.com/forums/u/cunningryan)\
**Post date:** [January 6, 2021, 6:46pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/3 "2021-01-06T18:46:15Z")

</div>

My assumption is an OS or Chrome update is the difference-maker. I’m trying to get my android test device to reproduce after some updates. Our POS web app itself hasn’t changed in this time period, though.

I don’t have all the info on the device yet (just that it’s an Android device), but I’ll reach out today for that info.

---

<div class="post-metadata">

**Author:** ![cunningryan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/cunningryan/32/320_2.png) [@cunningryan](https://developer.squareup.com/forums/u/cunningryan)\
**Post date:** [January 7, 2021, 10:00pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/4 "2021-01-07T22:00:39Z")

</div>

I did get some more info (below). Another device, with the same Square/Chrome versions isn’t having any issues.

- Square POS: 5.54
- Chrome: 87.0.4280.101
- Device: LG Stylo 5
- Android 10, Q720C520b

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [January 8, 2021, 5:50pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/5 "2021-01-08T17:50:47Z")

</div>

So far I haven’t been able to replicate unfortunately. Could you provide your application id and the `location_id` where it happens? I can try to see if our logs reveals anything.

---

<div class="post-metadata">

**Author:** ![cunningryan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/cunningryan/32/320_2.png) [@cunningryan](https://developer.squareup.com/forums/u/cunningryan)\
**Post date:** [January 8, 2021, 6:20pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/6 "2021-01-08T18:20:05Z")

</div>

Sure thing! Thanks. The only thing in relation to this that we’ve found via Googling is a [StackOverflow post or two mentioning issues from the Square POS app side](https://stackoverflow.com/questions/43491435/cant-connect-to-square-register-from-web-app), but only things from 2017.

application id: sq0idp-7Cg7prwG4ShBv\_lTbuQtYA  
location\_id: LE2SD8BNFZZ9D

---

<div class="post-metadata">

**Author:** ![cunningryan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/cunningryan/32/320_2.png) [@cunningryan](https://developer.squareup.com/forums/u/cunningryan)\
**Post date:** [January 8, 2021, 6:24pm UTC](https://developer.squareup.com/forums/t/point-of-sale-api-new-android-failure/1566/7 "2021-01-08T18:24:18Z")

</div>

I’ll also mention that we’re in-process of developing a dedicated mobile app w/ the Reader SDK, but not quite ready for launch yet. This one user having the issue is likely to get a test build sooner than planned, at this point, though. 😅
