cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to fetch the product from Hybris Suite on Mobile App SDK

Former Member
0 Kudos
260

I configured the Mobile App SDK , able to open the B2B and B2C mobile login window.

Issues : 1. In B2B - Not able to login the Mobile App window 2. In B2C - As login not required , able to see the various left navigation links but unable to fetch the Data from the links given. 3. Unable to fetch the Data , Where I need to configure the URL's?

Solutions Tried : I tried some solutions like increasing the timeout but it didn't work. If there are any demos or documents for reference regarding this kindly share.

Reference Links : Below are the links I referred while configuring -

1.https://wiki.hybris.com/display/release5/Integrating+the+hybris+Sample+App+into+a+Development+Enviro... 2.https://wiki.hybris.com/display/release5/Setup+Guide+-+Importing+the+hybris+Mobile+B2B+App+into+an+I...

Any help like documents , or Demo or links will be highly appreciable as I am stuck since 3 days.

Thanks in Advance.

Former Member
0 Kudos

Hi Shrikant,

I am facing issue with b2b app login. Can you tell me what exact credentials we need to use. Also both apps are stopped frequently after opening. Any idea on this???

Thanks, Priyanka

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to set up OAUTH2 in order to work with the mobile app. The reason is because the mobile app use the OCC services and in order to get access them you need the security configure.

If you open the following file on the mobile app:

yCommerceLibrary/src/com/hybris/mobile/lib/commerce/Constants.java

here you can find the clientId and secret to do it.

To configure the OAUTH2 look this link: https://help.hybris.com/6.4.0/hcd/627c92db29ce4fce8b01ffbe478a8b3b.html#loio6faa241f2dac445093b0cd02...

On the other hand in case you need to configure the URL for your backend (for instance for B2C): /yCommerceApp/b2c/res/values/conf.xml

Here there is a property "backend_url_values". You only need to change that IP from yours.

By the way you can also change the url for the backend from de APP on the menu "Settings"