bhagat bisht
Posts: 0
Joined: Mon Mar 10, 2014 11:29 pm

Salesforce service plugin problem

I am using following login method using salesforce service

Image

When I run the app it open new page to login and ask for permission

Image

and if I click on allow button it again open the same login page, same process happen again but if I click on done link which is coming in above image its work fine for me.
But once I allowing the page it should close the popup and redirect to next page. Why it is not happening?

I tried to use doLogin method which work fine but barcode scan functionality doen't work with that plugin.

Image
in login method I am calling salesforceLogin method of salesforce javascript service

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Salesforce service plugin problem

Hello,

Did you specify all the necessary parameters, such as redirect_url? And one more thing, please remove frame. Test in browser should work without frame.

bhagat bisht
Posts: 0
Joined: Mon Mar 10, 2014 11:29 pm

Salesforce service plugin problem

Yes I provided all the required the information
Image
and in Browser same issue is coming.

Public url
http://appery.io/app/view/44485c14-eb...

bhagat bisht
Posts: 0
Joined: Mon Mar 10, 2014 11:29 pm

Salesforce service plugin problem

I am not using mobile frame it is actual app screen shot which has done button

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Salesforce service plugin problem

Hello!
Add alerts for loadStartListener function, check if execution goes till window.browser.close(); or not?
Check console, are there any errors http://developer.android.com/tools/he...?

bhagat bisht
Posts: 0
Joined: Mon Mar 10, 2014 11:29 pm

Salesforce service plugin problem

I put alert in loadStartListener method both alert are coming but popup is not getting close Image

First screen 1 Image

ask for authentication second 2 page Image

alert comes next screen Image

next alert comes Image

but popup didnt close it again open the login screen Image

to go into next Barcode page i have to click done button below of login pages which comes automatically

bhagat bisht
Posts: 0
Joined: Mon Mar 10, 2014 11:29 pm

Salesforce service plugin problem

any update?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Salesforce service plugin problem

Hello!

Tested on Android and it worked. Now going to test on iOS device. I'll update.

bhagat bisht
Posts: 0
Joined: Mon Mar 10, 2014 11:29 pm

Salesforce service plugin problem

Ok Thanks
I am also testing the app in IOS.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Salesforce service plugin problem

Just tested on iPad (iOS7) - after i click Allow button it redirects me to Menu page, the same as on Android device...
Is it still reproducible for you?

Return to “Issues”