Page 1 of 1

Salesforce service plugin problem

Posted: Wed Mar 26, 2014 8:31 pm
by bhagat bisht

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


Salesforce service plugin problem

Posted: Wed Mar 26, 2014 8:56 pm
by Nikita

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.


Salesforce service plugin problem

Posted: Wed Mar 26, 2014 9:23 pm
by bhagat bisht

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...


Salesforce service plugin problem

Posted: Wed Mar 26, 2014 9:25 pm
by bhagat bisht

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


Salesforce service plugin problem

Posted: Fri Mar 28, 2014 11:45 am
by Maryna Brodina

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...?


Salesforce service plugin problem

Posted: Fri Mar 28, 2014 5:08 pm
by bhagat bisht

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


Salesforce service plugin problem

Posted: Mon Mar 31, 2014 6:25 pm
by bhagat bisht

any update?


Salesforce service plugin problem

Posted: Mon Mar 31, 2014 6:34 pm
by Maryna Brodina

Hello!

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


Salesforce service plugin problem

Posted: Mon Mar 31, 2014 7:15 pm
by bhagat bisht

Ok Thanks
I am also testing the app in IOS.


Salesforce service plugin problem

Posted: Mon Mar 31, 2014 9:04 pm
by Maryna Brodina

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?