mobile-sdk icon indicating copy to clipboard operation
mobile-sdk copied to clipboard

[Android] Stuck in com.mservice.SDKActivity when back to app from Momo by Tasks Manager.

Open dphans opened this issue 4 years ago • 4 comments

  1. From partner app, start MoMoActivity, app redirect to Momo to continue payment.
  2. In Momo app, open device Tasks Manager, tap on partner app.

Issue: Partner app "freeze" because SDKActivity is overlay on the front. Expect: SDKActivity must finish and response callback to partner app cancelled status.

dphans avatar Jan 11 '21 06:01 dphans

Hi @dphans, I got same issue on my side. Did you resolve on your side ?

LevisLuong avatar Jun 03 '21 09:06 LevisLuong

Hi @dphans,

I got same issue on my side.

Did you resolve on your side ?

@LevisLuong Temporarily, I fix by moving sender activity into front by updating flag FLAG_ACTIVITY_REOTHER_TO_FRONT so user able to interact with UI and repay when needed.

dphans avatar Jul 19 '21 07:07 dphans

Hi @dphans, I got same issue on my side. Did you resolve on your side ?

@LevisLuong Temporarily, I fix by moving sender activity into front by updating flag FLAG_ACTIVITY_REOTHER_TO_FRONT so user able to interact with UI and repay when needed.

Could you show your code for reference? I got this error in Flutter too.

phuongtinhbien avatar Aug 11 '21 03:08 phuongtinhbien

@phuongtinhbien Sorry, I can't leak company source code because company's policies. In scenario, I set the time interval to check foreground activity and momo result. If foreground activity is SDKActivity (from momo) and callback return empty (momo not yet return any callback), it mean user back from momo app with task manager => We'll cancel the transaction.

But: Why we try to cover their bugs? Why they not fix their issues?

dphans avatar Aug 13 '21 09:08 dphans