You need to sign in to do that
Don't have an account?
Jennifer W. Lee
Need help on Mobile SDK module - getting started with hybrid development
I followed all the instructions on the Getting Started with Hybrid Development module (https://developer.salesforce.com/trailhead/mobile_sdk_intro/mobile_sdk_hybrid/mobilesdk_hybrid_getting_started)
When I put in the command - "cordova emulate android", when it tried to run the app, I got an error "net::ERR_FILE_NOT_FOUND (file:///android_asset/www/index.html)
Any thoughts?
When I put in the command - "cordova emulate android", when it tried to run the app, I got an error "net::ERR_FILE_NOT_FOUND (file:///android_asset/www/index.html)
Any thoughts?
http://stackoverflow.com/questions/29349338/failing-to-load-resources-when-building-for-android-emulator-using-visual-studio
http://stackoverflow.com/questions/29648669/neterr-file-not-found-file-android-asset-www-index-html-was-not-found
<content src="index.html" />
That reference to index.html is what is causing the file not found error - change it to something else and the error changes
Changing this to reference for example login.salesforce.com will display salesforce in the app and the user can log in
But it is not doing the OAUTH process and it is not accessing the VisualForce start page
It feels like the generated contact tag is wrong and should reference the entry point for the OAUTH process
Any ideas anyone?
#mobilesdk #oauth
I have just got stuck th the same problem and have no idea how to solve it.
Does anybody have any solution for this?
$ cordova plugin remove com.salesforce
$ cordova plugin addhttps://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin
Doing this will re-run the post-install scripts and might throw an error.