cancel
Showing results for 
Search instead for 
Did you mean: 

ViewModel.create(exampleEntity) not working after 1hour locked screen

axeldion
Explorer
0 Kudos
327

Hi,

I'm using the SAP mobile cloud SDK for android.
I'm stuck on a bug for 2 weeks. When I use the viewmodel.create(customEntity) from the android SDK this works fine. The entity is successfully sent to our S4HANA through a POST on a www.customUrl.com/customEntity. But when I lock the screen of the android phone or put the app on background for several hours its not working anymore. When I come back and try to create a new object the SDK is sending the object to www.customUrl.com and not to www.customUrl.com/CustomEntity which of course results in an error. My activity is just placed onPause for serveral hours but onDestroy is never executed so there should be no data lost.

Is there a way I could get some help implementing this SDK?

Thanks!

View Entire Topic
axeldion
Explorer
0 Kudos

No that's not possible. The users who are using the app will not have an account. I'm using 3.2.0 but the app has been generated with 3.1.3.

ok, i am using 3.2.0 wizard generate app to reproduce the issue. if i can not reproduce the problem, can you generate a temp app for me to do the further investigate?

axeldion
Explorer
0 Kudos

If necessary I can do this. How can I share the "temp app"? let me know if you can't reproduce this. Thanks for the help!

0 Kudos

you can send me a mail(guoqing.zhang@sap.com) with zip app on the attachment.

axeldion
Explorer
0 Kudos

Done! Used OneDrive attachment was too big

0 Kudos

That's great!

I have tried but not reproduce the issue, I will continue debug using your project.