Is it possible to access test.salesforce.com from a Hybrid app generated with the Salesforce.com Mobile SDK for Android?
When using the iOS SDK, the login URL can be set via an application setting, however this does not seem possible within a Hybrid App on Android.
Do I need to modify the PhoneGap plugin SalesforceOAuthPlugin to do this?
I'm referring to the SDK available from https://github.com/forcedotcom/SalesforceMobileSDK-Android
I think that this can't be done using javascript, if you're doin' this with mac, you have to change your app settings at (Settings | Your App | Custom Host) and replace login by test.
If you're doin' this on android, you have to edit the DEFAULT_LOGIN_URL attribute of the classe com.salesforce.androidsdk.auth.OAuth2.java to the test login URL (https://test.salesforce.com).
I was in this trouble since a week, and that's what I did and it works on my Hybrid App.
Related
I have developed an application using Angular 7 with Responsive Web Design(RWD). I have converted this application into an Android APK that runs the app inside a webview. However, I have found Some of features of Native app ( like Opening Camera,Open file browser) in android App not working.
What extra effort would be needed to convert an RWD to webview Android App?
Javascript nor code running inside a webview by their nature, do not have access to a device's hardware. You will need to access the OS's native code to be able to use them.
The easiest approach I would recommend is using a hybrid app platform such as cordova.
I have a mobile website, users user smart phone browser to access my site.
Now some users would like to have an Android App.
So is there any easy and fast way to create an Android App which will access the existing mobile website so that I can have an Android App without developing Android app?
You would have to create a "wrapper" Android App. That is a native Android App with a Main Activity that contains a WebView with JavaScript enabled and some sort of navigation controls either on the mobile website or the native app (buttons or menu) but you could bump into problems such as:
Users being stuck in a particular page with no way to navigating back or forward.
Google is now more picky with the apps and they have policies to reject or ban apps that are only wrappers or point to external websites (kind of what Apple did for iOS)
Any case, you would have to create a mobile layout for your website or a make it responsive (special CSS and JS UI/UX that fits better on mobile devices).
Another alternative is to make your website compatible with PROGRESSIVE WEB APPS (https://developers.google.com/web/progressive-web-apps/) which is basically a Web app with some special elements that allow it to receive push notifications, put a shortcut or app icon on the device's home screen, etc.
Good luck! Hope this helped!
You can use android WebView. For more details you go through the link Android Webview
the only way to do that, using WebView on your apps or you need to create manually
You can put your code into Cordova and convert it into other IDE like android studio or eclipse .
reference:
Import Cordova project in Android Studio
I have recently finished a rails app and Its is currently hosted in heroku, It has a database setuped and every thing. In the app you can upload users edit them, etc. .Now, I want to create an android aplication that can do the same things.
I have been reading about using rest but I am not shure that is the way. Any other options, thanks!
You have just two option:
Create your own API in your rails app:
Manually:
http://railscasts.com/episodes/350-rest-api-versioning
Using some gem:
http://railscasts.com/episodes/348-the-rails-api-gem
or
create android app with Webview object for working with you app by internet like browser
https://developer.chrome.com/multidevice/webview/gettingstarted
very similar question:
From ruby on rails website/webapp to Phonegap Android app?
We have a responsive web application for desktop users and it is working fine. My organization also has native android app. Now, the requirement is to integrate responsive web app with native android app (using webview). Same time, we are looking to access some native features of device like capture photo from web application.
We suggested to use phonegap but don't know how we can integrate phonegap javascript api with existing web application without creating phonegap/corodova application. Idea is that, user just hit the native app button and on listener it will invoke webview with webapp url. By checking user agent we will be able to load phonegap JS api and it will be able to access native features.
Issue is that, Don't know whether it is possible or not, if yes then how we can enable phonegap api in existing web app. Desktop and mobile user will get same experience.
Use WebView component of phonegap in your application, read documentation
http://docs.phonegap.com/en/3.5.0/guide_platforms_android_webview.md.html#Android%20WebViews
I want to launch one application that already installed in my device from another application by some action like clicking on a button. I want to implement this both in android and ios applications as I am developing worklight hybrid application.
I want to know whether this is feasible in hybrid applications using IBM worklight or phonegap.
Let me know if any other information is needed on this.
Yes. You can implement Cordova plug-in(s) that will do this.
See user documentation on creating Cordova plug-ins in Worklight: http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#GS_native_to_hybrid
Here's a Worklight 6.2 demo project (instructions.txt inside), demonstartnig opening external (installed) apps in Android and iOS in different fashions: https://www.dropbox.com/s/5dd5hqvx8aplltc/6.2-OpenExternalAppProject%20.zip
Related questions with more ways to do this:
IBM Worklight - How to launch another app?
Worklight(6.1v) hybrid app - need to open other application from my app