Comments (8)
Hi @dkaskoun , may we know the SDK version you are using?
I have tried forcedroid create hybrid app, it builds and runs ok.
Did you update bootconfig.json with current info?
from salesforcemobilesdk-cordovaplugin.
I've been trying with the lastest from this repo, including the build that just happened yesterday.
We finally got it to compile to ios after upgrading xcode, though, and it works fine there...
I didn't update bootconfig, but it should default to a test connected app, right? I haven't needed to update that for browser/ios compiling.
Just occurred to me you might be asking about android SDK version. I have 5.0 and 5.1 (API versions 21 and 22) installed because my phone is running 5.1 I believe.
from salesforcemobilesdk-cordovaplugin.
@dkaskoun so you did 'cordova platform add [email protected]' then 'cordova prepare', and you are seeing the issue oauthPlugin.getAuthCredentials do nothing?
from salesforcemobilesdk-cordovaplugin.
@dkaskoun I guess you are using Android Studio? How many projects do you have in your workspace? In some cases the Android project is not created correctly. If you see your project and some Salesforce SDK projects in your Android Studio project everything should be fine. If not, you have a problem with installing your SalesforceMobileSDK-Cordova Android plugin. There is a postinstall script which initializes your android project correctly. If you have an error here your android project does not work (e.g. wrong android platform version). And then you got the oauthplugin error because of missing project references
from salesforcemobilesdk-cordovaplugin.
I did run the platform command to set it to 5.0.0, and did do a prepare.
As for Android studio, I don't really have anything in my workspace, I specifically downloaded it for this. Far as I could tell, the Android Studio project was created correctly. I was able to open it, and the compile/run seemed to work.
Unfortunately, I don't know that I'll have a lot of time to test this again soon. Since we were able to get it to run fine on ios, which is the more important one for us at this point, we're going to mainly move forward with that, but I will try to find some time to give this another shot at some point.
from salesforcemobilesdk-cordovaplugin.
@dkaskoun these are my steps to setup an android project
- remove android platform if already added
cordova platform rm android - remove the Modile SDK plugin
cordova plugin rm com.salesforce - install the PushPlugin manually
cordova plugin add https://github.com/phonegap/phonegap-plugin-push --variable SENDER_ID='your.app.id' - add the platform android
cordova platform add [email protected] - set ANDROID_HOME
export ANDROID_HOME=/<installation location>/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
- ensure that the correct shelljs version is installed
npm install [email protected] - add the Mobile SDK plugin
cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin - open the Android project in Android studio
- keep a look on the console and upgrade gradle if necessary
from salesforcemobilesdk-cordovaplugin.
@sevem Thank you for your help on this thread. @dkaskoun Are you unblocked by @sevem 's suggestion?
from salesforcemobilesdk-cordovaplugin.
I'm sorry, I haven't had a chance to retest this yet on Android. I'm trying to get at least the ios version wrapped up by the end of this week, so I may have a chance to try again next week.
from salesforcemobilesdk-cordovaplugin.
Related Issues (20)
- Unable to add the plugin
- SDK v 9.2 - 10.0 is not compatible with important Cordova plugins HOT 2
- Publish latest version to npmjs HOT 1
- Please add SalesforceMobileSDK-CordovaPlugin to an NPM Registry HOT 1
- Support for cordova-android 11 HOT 7
- App crashes upon being opened on iOS 13 HOT 10
- Android 12: App crashes and no push notification received when push notification is triggered HOT 3
- App crashes upon being opened on iOS 13 HOT 1
- App crashes on Android 9 (device and emulator) HOT 4
- What is the plan for releasing 10.2.0? HOT 2
- Archive failing HOT 7
- App crashes on Android 9 (device and emulator) HOT 5
- Cordova iOS Build with Salesforce SDK 10.2.0 is failing on Xcode 14 HOT 5
- Disable auto-login on Salesforce Mobile SDK HOT 11
- iOS: Link SalesforceHybridSDK Task is failing with undefined symbols for architecture x86_64 HOT 3
- SOQL Query API responds 503 in iOS HOT 2
- In-App Developer Support not working in ios. SalesforceMobileSDK-CordovaPlugin - 6.2.0 HOT 1
- Android App crashes when sessions timeout HOT 7
- How to call biometric auth methods from JavaScript? HOT 1
- request time out error in synchronization time -SalesforceMobileSDK-CordovaPlugin Ionic App HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salesforcemobilesdk-cordovaplugin.