I am having an issue. Here is the background of App. Currently, I am opening website into Worklight App. So, my all declarations of WL(object) are defined at website. Because of having the same structure of resources website opened in worklight app suppose to be working fine. My app is working good in Android but for iPhone it's not detecting WL object.
Any Ideas?
What you are describing, "loading worklight in an external website" is really not a supported scenario and not how MobileFirst was meant to be used. I am surprised it is working in Android at all.
The way you can load a "remote worklight-based 'app'" in your existing mobilefirst application is by using one of the following approaches:
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/advanced-topics/using-a-mobilefirst-application-as-a-container-for-server-generated-pages/
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/advanced-topics/container-advanced-pages/
Related
For Facbook integration in Worklight which platform should we select Android or Website
,
right now i am developing for android environment but later i will be doing for iphone and windows as well
Also were do i place the Facebook integration code in index.html(main) or in android project which is separately created ?
i am confused do reply
It looks like you are developing a Worklight-based Hybrid application, so in this case you should actually opt for the Facebook JavaScript SDK.
You can add it to your common\js folder and reference it in the common\index.html (just follow the instructions Facebook probably provides). This way you could easily 'extend' it to whichever additional environments you will add in Worklight Studio in your project setup.
Of course, you can also choose to use Facebook's native SDKs for each environment in your Hybrid application. In this case, you'll need to add the SDK in the iphone-ipad-or-android\native folder and follow Facebook's integration instructions (note that for iPhone the actual integration will be done in Xcode, not Eclipse).
If you choose to create a native application and bundle it with the Worklight SDK, then you should opt for the Facebook SDK dedicated to the specific OS. Here, you will add the SDK, again, by following Facebook's instructions.
i am building my first phonegap app and when i open the app i instantly redirecting (window.location) the user to my server where my web app is hosted. Is it possible to load the phonegap plugins from there? Because the "deviceready" event is not firing and i cannot call any plugin functions.
I can confirm that loading remotely does appear to allow access to native components (when scripts are properly loaded) and that cordova.jsdoes not appear to need to be loaded by the local index.html bootstrap.
Short answer: Yes
Some 'gotcha's'
You will have to supply correct cordova.js version for the platform browsing to your site.
you can look here for more info https://github.com/apache/cordova-js. This project hosts the core js elements, and builds the platform specific cordova.js lib
Any plugin api's your app wants to interact with must be pre-installed into the Native App
any plugin with native code will have to be added to the project and deployed to device bundled inside the app. There is no way to lazyload native code. The js portions of the plugin could be hosted on your server, however.
More information, some apps that do this
The PhoneGap Developer App uses a similar technique to what is describe above and what you want. The only difference is that it is meant as a dev tool, and the server is a local dev machine.
The Cordova App Harness also uses this technique of pre-bundling an app package with plugins, to be consumed by remotely hosted resources
You cannot, deviceready only functioning if the app run on mobile phone environment only. If web based or dekstop application, it won't trigger.
No , dont do that . loading remote website will not able to intract with your plugins . and the app will get rejected on istore too
I have been developing a phonegap application (HTML/jQuery) for Android devices and packing it in Phonegap Build.
I have a demand of having a background service that keep sending data to our web services every 1 minute. As far as I heard, it's only possible developing the background service in Java and communicating with the UI somehow.
My background is in .NET, so my question is: Is there another way of doing that apart from Java? Any good tutorial?
If not, Can I still keep using PhoneGap Build to pack the UI and the Background Service? Or do I have to have the whole Phonegap SDK installed in my machine?
You can't do it by Phonegap Build!
You have to install the whole set of tools (eclipse, android sdk and cordova), and then develop the service in Java, adding your HTML assets into the project. So that you'll get able to generate the APK containg Background Service and Webapp.
I am new to sencha touch. I want to create a mobile application in eclipse ide.
Can anyone tell me how to do that? I got many links for creating web app but none for mobile app.
The first thing I recommend is that you get started with sencha command, this will help you when building out the app for native packaging, not to mention creating an initial app for you with the basic essentials: http://docs.sencha.com/touch/2-0/#!/guide/command
Android Packaging: http://docs.sencha.com/touch/2-0/#!/guide/native_android
iOS Packaging: http://docs.sencha.com/touch/2-0/#!/guide/native_packaging
This next one talks about phonegap and working with eclipse... which since sencha command is available, 3rd party sdk's like phonegap would be the only rrason to compile in eclipse, otherwise sencha command can handle it.... http://andidog.de/blog/2012/06/packaging-a-sencha-touch-2-application-with-phonegap-for-android/
I'm starting developing applications for iPhone. My idea is to develop a application like a suite or multiple modules. The main application function is a application manager. This application can download each of the availables applications for the suite, like a office suite that starts with no applications/extensions, so, there are the possibility to download a spread-sheet editor, a text editor, or a image editor and so on.
I don't know if each application need to be a standalone application in appstore and the manager to have only shortcuts for they. Or if each application can be a library or plugin that will be installed in the main application through download.
Suggestions?
Thanks!
App store review guidelines says:
2.7 Apps that download code in any way or form will be rejected
You can't download libraries or code in your application. What you can do is, ship the application with all functionalities and enable them by in-app purchases.