cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to make service call in Hybrid iOS application to fetch csrf token. Working fine in android.

0 Kudos
254

I have developed an Fiori mobile app based on HAT framework. I have a requirement in application to attach the file from my mobile device and save it in backend ECC system.

I need CSRF token to upload the attachments, so I am making a service call(GET) to fetch CSRF token before attachment upload. On Android its working fine but on IOS devices service call is getting failed.


Thanks,

Ajay Salwahan

View Entire Topic
0 Kudos

Hello Ajay,

Make sure you have added below line of code in your success callback method of store.open() method in sap-mobile-hybrid.js file.

sap.Xhook.disable();

For more details, refer to below blog from Ludo:

https://blogs.sap.com/2020/03/16/hybrid-application-toolkit-apps-for-ios-switching-to-wkwebview/

Regards,

Happy Chhillar