Are there any Plugins available for Recording a Call in Android using PhoneGap? Or some guidance on how to implement it!
Thanks.
I don't think that this is possible at all. I hope the phone will protect the calls from beeing recorded by any app.
This is not a matter of phonegap.
edit
I found some apps, that can record calls at android phones.
Basicly it would be like audiorecording:
http://docs.phonegap.com/en/3.0.0/cordova_media_capture_capture.md.html
The only thing would be to detect the phonestate. Now the trouble may start, because your app is send to background and maybe will be paused.
There's not one that I can find.
Here's the documentation on creating a plugin for phonegap 3.x:
http://docs.phonegap.com/en/3.0.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide
And here's a tutorial on writing a plugin for phonegap 3.x:
http://devgirl.org/2013/09/17/how-to-write-a-phonegap-3-0-plugin-for-android/
You'll need to have this file stucture
src
android
ios
www
plugin.xml
You can also put more platform folders inside of src depending on which ones you want to support. plugin.xml includes all of the instructions for phonegap to be able to automatically install the plugin for each supported platform.
Here is an example of a plugin that's been upgraded to Phonegap 3.x.
Related
I'm currently trying to use Cordova to build an ios app and I've already had all the pages of my app done in separate HTML files such as "add_entry.html" and "inbox.html". But it seems like when I tried to run my program through "cordova emulate ios" in my terminal, it only runs the index.html file that was built for cordova.
Is there a way to get it to run the other html files I made instead of index.html?
I'm very new to using Cordova so please let me know if you're having trouble understanding my questions..
Thank you!
cordova emulate ios will emulate your entire website. You just have to make the index page link to your other pages. You specifically need an index.html file in a Cordova application, which will be the first page that you see when you load up your application.
All website need an index, and you cannot circumvent that.
Keep in mind that ios emulation (and build process) is only possible through XCode on an Apple Mac computer. Android emulation and development is possible on Windows (with cordova run android). You may be looking for PhoneGap to help you with this.
Hope this helps!
looks like you try to run cordova on a normal pc with windows or linux.
you can't compile a ios app with cordova in emulator. for compiling ios apps you have to buy an apple computer. perhaps phonegap build is an option for you.
I am developing an application using phonegap and builds using phonegap build.
Previously I used phonegap version 3.7. With that version I was able to load data to my app and make them display.
But I had to update the version to cli-5.4 to initiate push notifications. After that it does not load json. But all others working fine.
Somebody please explain what should I have to do.
Thank you
It could be a whitelist problem. Whitelist in Android was moved to a dedicated plugin due to security problems in Cordova 4 I think. Also have a look at the whitelist guide
How do you debug the non-js portion of a cordova plugin? I have found several discussions on Stack Overflow, but none of them have given me an answer on how I throw my plugin into an IDE, and be able to breakpoint it.
Debugging the JS is no problem and makes sense, but I have no idea how to either print out a log from the android/ios side or hit breakpoints.
I am in the process of making a small change to InAppBrowser to allow Cookie read/writing and I desperately need to know how to monitor this.
Any help would be vastly appreciated.
Create a new cordova project
cordova create debugPlugins com.debug.plugis debugPlugins
go to the new folder
cd debugPlugins
add ios and android platforms
cordova platform add ios android
and the inAppBrowser plugin (or any other you want to debug)
cordova plugin add cordova-plugin-inappbrowser
When you added android and ios platforms, two native project where created, you can open and debug them.
For ios, go to platforms/ios and open the debugPlugins.xcodeproj
For android open android studio, go to File->New->Import Project and select the platforms/android folder
I have packaged my jQuery/javascript application with phonegap for Android, and later plan to do this for iOS/BlackBerry. In this project, I implemented the FileTransfer.download function from the phonegap API to download a file from the server. The function is working successfully, but it blocks me from navigating to other pages within the app until the download is complete.
Maybe I'm missing something in the documentation: what's the best way to get FileTransfer.download to work in the background so that I can freely navigate page to page? Is it possible without resorting to device-specific code?
The solution I'm settling for is creating a plugin to call native code that does the downloading. In Android for example, I can create an AsyncTask to do the downloading in a phonegap plugin. I guess I'll be required to do something similar in iOS/BlackBerry/etc. Still welcoming others' solutions
This might be really a basic issue. I am kind of confused. I don't understand one thing. Phonegap app is pure html5 and javascript. But for this plugin (https://github.com/davejohnson/phonegap-plugin-facebook-connect/tree/master/example/HackBook) to work we need separate java code for android and xcode for ios.
I got the java version of the android tutorial working with the simulator but when I just copy the assets folder to build a pure phonegap app. it does not work.
Then it beats the purpose if i still have to maintain 2 code lines.
Does just the html and JavaScript code in this plugin is not supported by phonegap app without java or xcode.
Here is my phone gap app. you can download it. https://build.phonegap.com/apps/211586/share
My code in the git repositiry is here
https://bitbucket.org/sunmeet/phonegab2.0_fbapi
PhoneGap Build service only Supports ChildBrowser , Barcode Scanner, Google Analytics recently.
if you try to use any external plugin which needs assets other than HTML / CSS / JS, you can't use them with PhoneGap Build Service. But, PhoneGap Team are trying to push out different plugins like Facebook Connect in Future Releases.
So, here they gave two Options to Deveopers.
Use Child Browser and Do Process Facebook OAuth Authentication.
Build Locally.
Andriod developement environment is "Eclipse" IOS
developement environment is "XCode"(OS: MacOS)
I Suggest you to work with first option and once plugin is our from build service its really easy to integrate anytime.