Comments (4)
Give us more information.
Did you use forcedroid to create the application?
Was there any error during the application generation?
from salesforcemobilesdk-cordovaplugin.
Hi @wmathurin,
I followed this instruction - https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/dev_hybrid_apps_run.htm
I ran:
git clone https://github.com/forcedotcom/SalesforceMobileSDK-Shared
cordova create contactsApp com.salesforce.contactexplorer contactsApp
cd contactsApp
cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin
cordova plugin add org.apache.cordova.contacts
cordova plugin add org.apache.cordova.statusbar
cordova platform add android
cordova platform add ios
cp -RL <local path to SalesforceMobileSDK-Shared>/samples/contactexplorer/* www/
cordova prepare
After that I open it using AndroidStudio. I added 'multiDexEnabled true' on defaultConfig:
defaultConfig {
versionCode cdvVersionCode ?: Integer.parseInt("" + privateHelpers.extractIntFromManifest("versionCode") + "0")
if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}
multiDexEnabled true
}
The build didn't show any error. After I open the app on my android device I see the error above and the salesforce login page is not showing. It works fine on my iOS device.
Thank you.
from salesforcemobilesdk-cordovaplugin.
I think if you were to do the cordova platform add before you do the cordova plugin add it would work.
Anyway, we just released Mobile SDK 4.1 a few hours ago.
Among other things, we added a "after-platform-add" hook to the plugin, so it should now work regardless of the order of the cordova platform add and cordova plugin add.
Please re-open if you still have issues.
from salesforcemobilesdk-cordovaplugin.
Thanks @wmathurin. I will test using new version.
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.