I am using the Build.Phonegap utility to zip up my HTML, CSS, & JS in order to create an app on my Android phone. I know my code is fully correct as it renders no problem in my browser, but when I zip it up the JS doesn't render at all. My question is:
Can Build.Phonegap render third party Javascript SDKs? i.e. Facebook
I am attempting to use the Facebook JS SDK and do not wish at all to use the Facebook.Connect plugin for Phonegap.
Please do not mix this up the Phonegap/Cordova platform.
Thanks!
I don't believe it can, no. That's the point of the plugins.
Why don't you use the plugin?
Related
I never created a Cordova plugin, so I would like just know if it's possible to create Cordova plugin for ionic 3 (only ios) with this https://download.epson-biz.com/modules/pos/index.php?page=soft&scat=58 . And can you tell me please what file I need to use for creating a Cordova plugin (only for printing some text). I will put it in git after creating because I need it and show it to some people who need it. I just understand the JavaScript part of it but not objective-c... Thank you.
Really nice idea. You can start by using below link. Good luck!
iOS Plugin Development Guide
This section provides details for how to implement native plugin code
on the iOS platform. Before reading this, see [Plugin Development
Guide][plugin-dev] for an overview of the plugin's structure and its
common JavaScript interface. This section continues to demonstrate the
sample echo plugin that communicates from the Cordova webview to the
native platform and back.
An iOS plugin is implemented as an Objective-C class that extends the
CDVPlugin class. For JavaScript's exec method's service parameter to
map to an Objective-C class, each plugin class must be registered as a
tag in the named application directory's config.xml file.
I have some objective C code. I need to integrate it into my cordova project.
How can I run that code in my Cordova IOS app?
Your question is a little vague. But to get you pointed in the right direction:
Open your project in finder and navigate to platforms>ios>[project-name]>Classes.
Here you will find AppDelegate and ViewController files. These are written in objective C. AppDelegate handles a lot of the central processes of your app.
If you want to add something specific in ObjectiveC you have to write a plugin. Here's the doc about it : https://cordova.apache.org/docs/en/5.4.0/guide/hybrid/plugins/index.html
Once you've integrated your new plugin into your cordova app, you just have to execute your native callback from the javascript code. It works the same way as an official plugin.
What exactly do you want to add in ObjectiveC, are you sure that you can't do it from the webView ? (I mean in JS and not as native code)
I'm trying to create a JSON file with dojo toolkit that need to be saved into local memory of the phone. The app need to be valid for android and IOS. I'm using ECLIPSE with ADT as a IDE. My principal issue is that normally the file created with dojo were saved as cache cause the web-oriented nature of dojo. thanks for the help.
Why use dojo? You can use javascript and HTML5
This is not very clear... If you use ADT how do you make compatible with IOS ? And what is dojo doing here ?
I guess you are using Phonegap for creating your app...
Maybe what you are looking for is:
http://docs.phonegap.com/en/edge/cordova_file_file.md.html
I want to implement a cordova packaged app in javascript and use c-code for some high performance operations.
Is it possible to write a cordova plugin which then calls into android-ndk using jni?
If yes: How should I set up such a project? Is there anything special I should be aware of before starting?
I have done it successfully on one of my project. Just make a plugin which map your javascript code to your java code. Then your java code will call a C code trough jni.
i currently have highcharts realtime graph working on a browser (e.g. http://www.highcharts.com/demo/dynamic-update ), but we now want to an iphone/ipad app so that the users dont have to go and type in the address (instead open an app) and they see the live graph.
is there an easy way to convert the existing webpage (with highcharts.js and jquery. js into an app?) i looked at real time plotting on iPhone using core plot? but looks a bit complex for me (i dont have any prev knowledge on building apps )
Also, http://code.google.com/p/core-plot/issues/detail?id=94 indicates there is a known problem with core-plot dynamically updating the data in real time. any live examples would be of great help.
thanks
You might want to check out Phonegap, on build.phonegap.com you can upload your web-assets and download a ready compiled (web-)app wich will run as a regular app on your device.
For a simple web-app tested on android this worked great (but do not count on anything outside the browser being available to you (phonebook/sms etc)).
I'd suggest to create a iOS web-application, so you can use Highcharts JS like in a normal webpage. The Highcharts homepage says it's compatible with iPhone/iPad.
Web-apps can be designed to look like native apps and can also be started directly from the homescreen without typing the URL.
This answer is very late, but here is a gist that embeds HighCharts into a UIWebView. Embed jQuery (I used jquery-1.9.1.min.js) and the HighCharts .js files in the app bundle and this will load them into the web view.