cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments are not opening in Android SAP Fiori

Former Member
0 Kudos

Hi All,

I am facing some issue with https in my SAP Fiori Android application,  but In iOS its working fine.

In my application I am using couple of https requests and all are working fine before login to fiori apps. But after login to application, all https requests are blocked and getting time out exception. In this case I can open attachment also but all https are blocked. Finally I got one solution for this and I changed the value of SAPKapselHandleHttpRequests from true to false in  config.xml file.

Now facing another big issue, all other https requests are working fine also loading all fiori apps but i can't open the attachments. Logon failed while clicking to the attachments icon.

Appreciate any suggestion please...

Shafi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shafi,

First, you have to test in the browser on the Android device to make sure whether the issue is the same in the browser.

For Android device, if you want to open the attachment, then you need to install the external software which can open the file first.

Then if it is only a client issue, you need to check whether you are using the window.open(urlToAttachment) method to open the attachment.

Best regards,

Charlie

Former Member
0 Kudos

Dear Charlie,

Thank you so much for your reply.

I tested in browser and its working fine. Also I checked the fiori client code where its using the window.open(urlToAttachment) method to open the attachments.

The problem happens only in Android fiori client and I can open when the value of SAPKapselHandleHttpRequests is true.  In  this case, After login to the application my all https requests are failed and getting time out exception but http is working fine. I have to access some other https requests in my application those are pointing to a different domain.

For accessing https I changed the value of SAPKapselHandleHttpRequests in to false, then I can't open the attachments except this all are fine.

Regards,

Shafi

Former Member
0 Kudos

Hi Shafi,

I think the url to the attachment may use the HTTP protocol. So if you set SAPKapselHandleHttpRequests to false, then the attachment may also be blocked.

I think you can try to configure the url to the attachment to use HTTPs.

Also there may be other reason that cause the problem. You should do a fiddler trace to see what happened to the request.

Best regards,

Charlie

Former Member
0 Kudos

Dear Chrlie,

Thanks for your support.

After few hours of debugging I realized the root cause of blocking https in my application and I resolved the attachment opening issue as well. To fix the attachment opening issue I changed the value of SAPKapselHandleHttpRequests in to true.


If the value of SAPKapselHandleHttpRequests is true, After login to the application the app will set some proxy values in the fiori client so its blocking all https requests. That's why my all https requests failed. To solve this I added some line of codes to by pass the proxy from android device and now both working fine.

Regards,

Shafi

Answers (0)