Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauthPlugin = cordova.require("com.salesforce.plugin.oauth"); Issue #12

Open
jduelfer opened this issue Dec 16, 2015 · 9 comments
Open

Comments

@jduelfer
Copy link

Hey, I have tried you app using force-server and it runs perfectly, great tutorial. However, I am trying to run your app on an Android device, but it opens up to a blank screen and the code stops at the oauthPlugin = cordova.require("com.salesforce.plugin.oauth"); line. Now I don't believe this is an issue on your part, as it seems more of a problem with my configuration of cordova. But have you come across this issue before or have any possible solutions?

Thanks!

@sfofthings
Copy link

Hi jduelfer did you manage to get it working with Ionic-View?http://view.ionic.io/

@udaykumarbpatel
Copy link

@jduelfer @bonhomie Were you able to fix this issue? I am also having the same problem. The application works fine for iOS. But with Android, I am not able to get past the oauth.

Thanks in advance

@jduelfer
Copy link
Author

jduelfer commented Feb 4, 2016

@bonhomie I have not tried using Ionic-View, when I have some time again I trying working with that and see how it goes. @udaykumarbpatel no, I wasn't. I could also manage to get it going on iOS, but I'm working in Spain and nobody uses iOS, so it's kind of a bummer. For Android, I have tried different things and anytime with oauth using plugins, there are issues with the way Android displays WebViews. Please me know if you get anything working.

@darrenatyurgosky
Copy link

I'm having the same issue: Uncaught module com.salesforce.plugin.oauth not found

Using Ionic Salesforce template with plugin com.salesforce 4.0.2 "SalesforceMobileSDK Plugins"

@darrenatyurgosky
Copy link

This looks like the problem, when adding android platform

Updated the hooks directory to have execute permissions
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.ionicframework.starter
Name: HelloCordova
Activity: MainActivity
Android target: android-23
Android project created with [email protected]
Running command:
/Users/Darren/IonicApp/hooks/after_prepare/010_add_platform_class.js
/Users/Darren/IonicApp
add to body class: platform-android
Installing "com.salesforce" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 5.1.0, failed version requirement: 5.0.0
Skipping 'com.salesforce' for android

After downgrading to cordova 5.0.0, "cordova/ionic run" doesn't do anything

@frankyanwang
Copy link

@darrenatyurgosky you can use $ ionic platform add [email protected] to add proper version. But even with proper version, I am still getting white screen, iOS simulator works well. There is no error on Chrome console. @jduelfer did you figure out the problem yet?

@feda8891
Copy link

Hi everybody. I have the same issue. Did you find the solution?

@smukov
Copy link

smukov commented Sep 8, 2016

I'm having the same issue as well.. weird that this didn't get solved since December.

@feda8891
Copy link

feda8891 commented Sep 8, 2016

Hi smukov. It is a matter of tools version. I've written an article about Ionic and SFDC where I show all the versions required for working. Give a check, maybe you can use it to solve your problem. Kind regards
http://www.sales4k.com/sfdc/salesforce-mobile-ionic-project-android-ios/

follow us on @salesfork on twitter. We write about solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants