function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Francesco BoccassiFrancesco Boccassi 

Ionic and Salesforce

Dear All,

anybody of you has succeeded to run Salesforce for Ionic on Android device? I succeeded to run on local web browser following the developer guide, but when I try to run it on Android a white screen appears. I've followed some of the suggestions on Stack Overflow but nothing happened.

Can you help me?

Kind regards.
Steven GrecoSteven Greco
Hi Francesco,

Did you ever have any luck with this? I am at a similar point right now. Android is stuck at white screen. Using Ionic View, I am able to login, but then redirected back to a white screen. I believe it could be related to the oauthCallbackUrl, but I have found many different references of what that should be and still haven't had success.
Francesco BoccassiFrancesco Boccassi
Hi Steven,

I finally managed it. I've written an article about the topic. http://www.sales4k.com/sfdc/salesforce-mobile-ionic-project-android-ios/
In my experience the issue was the tools versions. Try to follow the article and let me know :D
Steven GrecoSteven Greco
Great article!! Thanks for putting that together. The only additional thing I had to do besides what you posted was ensure that shelljs was installed before adding the MobileSDK plugin:
  ionic start testApp salesforce
  cd testApp
  cordova platform add android@5.0.0
  npm install shelljs@0.7.0
  cordova plugin addhttps://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin
KhalèdKhalèd
Hi everybody, 
I am trying to import a project into android studio, I get this error; no resource found that matches the given name ( at 'icon with value '@drawable/sf__icon') 
I am using cordova 6.5.0 ionic 2.2.2 
when I run forcedroid version i get 5.0.1
I followed the same steps of trailhead module using ionic:
https://trailhead.salesforce.com/projects/mobile-sdk-hybrid-apps/steps/mobilesdk-hybrid-apps-04
Regards