I have made a sample application in ios using phonegap framework. I have used plugins for navigation bar and tab bar. Now I want to deploy my app to android. so what should I do now? Whether I should make it for android also using phonegap framework with eclipse or is there any other way to do it? can I make the build directly for android using phone gap?
in android,set the weblink below the setcontentview in mainactivity in android
Related
I am developing an app with Cordova + Webassembly.
The customer needs the app to work on Windows and Android.
I am using Visual Studio 2017 + TACO.
The webassembly is generated from C/C++ code using emscripten and is working all fine on Edge and Chrome. It is also working on an Android device (Chrome)
The Cordova app running on Windows is working perfectly.
Now my problem is on Android. The Cordova app on Android log this error:
Fetch API cannot load file:///android_asset/www/script/myApp.wasm. URL scheme "file" is not supported.
I can't find anywhere if Cordova supports WebAssembly on Android. My understanding is Android is using a WebView component and should rely on Google Chrome (my Webassembly is working fine on Chrome on Android).
Is there an option somewhere to add a mime-type for cordova on android?
Thanks in advance for any help.
There is another option using the XMLHttpRequest object like showed at https://studiolacosanostra.github.io/2020/02/23/How-to-run-rust-wasm-on-cordova/.
Of course, you don't need to overwriting the fetch function like they do there, but you certainly can use the idea to create your own function.
As you can see in the console, "URL scheme must be “http” or “https” for CORS request.".
Hello this is my first time i use cordova and ionic for android app , my qustions is :
1-in this app i just want use html css and js for design , so i must use cordova ?
2-i have a method in js get the latitude and longitude then show some values to user, but i need this method use in background and do this work automaticly all day , i need use java code ? or i can do it with cordova and ionic ?
3- if i need use to hardware in android , is better use java or cordova plugins ?
4- where is webviw cordova use for show index.html ?
i read to many way and i confuse to how can i do , i need best practis way to make hybrid app , pls help and show me the way .
Don't worry, we all have to begin some day. Let me first clear your few doubts about Cordova.
Cordova wraps your HTML/JavaScript app into a native container which can access the device functions of several platforms. These functions are exposed via a unified JavaScript API, allowing you to easily write one set of code to target nearly every phone or tablet on the market today and publish to their app stores.
so in short cordova helps you to access device functionality via javascript.
Ionic is a mobile css framework, which is built on top of angular js and allows support for cordova functionalities.
Now I will give answer's for your all questions:
Yes, if you want to create a mobile app using html and js, you need to use cordova. Since, cordova will wrap these files in the native container of respective mobile os.
You can run the task in background using cordova. There is a plugin for that which you can use Cordova Background Plugin
purpose of cordova is only, to allow device hardware access via javascript
You don't need to code anything to show index.html, cordova will do everything for you while building the app
i have a native android app and i'm making another app using cordova and phonegap,
Is it possible when i open my cordova app it will run on background the other native app?
Thank you
I'm not sure but I think is to mix the native code for the core service with the Webbased UI.
you can take a look at Cordova-Plugin-BackgroundService
but it is for android only.
I know that a website can be displayed on an android app using a WebView. I have created an android application and I want to know if there is a way to display an android application as a website. Is this possible?
No.you can't. Native Mobile functionality are totally different from websites. So you can't convert native android app to website type of application. Instead you can use hybrid application like sencha,titanium, jquery which is flexible to support in all mobile platforms and also website.
Is it possible to implement the shortcut creation technique used in "Evernote" app using phonegap plugin.I am trying to do the same using phonegap and android but unfortunately I am unable to do so.I could easily do that with a native app with android but is it possible in cross platform as well?It would be really helpful if anybody can help me out with this.Thanks!!