How to make dynamic apps using Phonegap?

  • 2
  • Problem
  • Updated 6 months ago
Hi there, i am a student creating an app. But having some problems, i still cudn't found that what are the plugins and how we can use i used many from list but all they are not responding. Phonegap Team please help me i just want to create an app with camera(to capture images) and Call(to a particular number) how i can use them? I am using build.phonegap.com using dreamweaver. Thanks in advance. I also attached the screen shot of my app
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes

Posted 4 years ago

  • 2
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Since this is your first post, please answer the following question.
- Is this your first hybrid App?
- Are you using the Desktop App?
- Are you using CLI, SDK or Build? Please do not assume the answer, please read the link.

Thanks
Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
-Sorry but i dont know what is hybrid app.

-No i am not using Phonegap desktop app. I am using Dreamweaver with HTML5, css3 and java script.

-I am using Phonegap Build.
Thanks
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@saba,
you are using making a hybrid app. This is why i crossed out the question. Phonegap is one of my systems to make hybrid apps.

FWIW: the app you describe can be created. You just have to use a plugin.

- Camera plugin search
- dial phone plugin search

Instructions for each plugin is included on the supporting webpage.

What are plugins - a beginners guide

Best of Luck
Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Thanks Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
There is no plugin named dialphone or phonedial in Cordova i searched many time.
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Hi Jesse,
I tried many times to use plugins and also configured config.xml for supported version recommended by phonegap build.
I used 3rd party's plugins and used source code of Git repositories.
I used Custom camera and others and build app, The app was succesfully build but its not using my device camera.
Thanks
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@saba,
how are you testing the device?
What is the make and model of your test device?

FWIW: here is my demo app for the camera plugin

Build it with phonegap build. Use it to test your device.

Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
I am using my app after updating source code using cloud build.
You can see the snap shot.
After Capture QrCode i download app and after install in my android phone i am checking. Its going successful build for android and blackberry. but not responding camera device/
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
In Zip folder there are all files, config.xml plugins and index.html too
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@saba,
Phonegap build does not work for for blackberry. PGB, at this time, only works for Android, iOS and Winphone 8.

Supported Platforms

Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
No Problem @Jesse I checked it in Android phone, now a days Blackberry O.s. also supports apk apps. So its not matter
Let me Check Your app first.
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Wow Jesse your app is really working :D
Thank you very much :)
Can i ask little question more?
The image stored in a particular folder, can we send it to server? and how?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
I gave you a link for plugins "What are plugins - a beginners guide", read this. You want from the "core" plugins - "File System" and "File Transfer". At this time, I do not have a demo for either.

You will also need to use the "whitelist" plugin.
HOW TO apply the Cordova/Phonegap whitelist system

Here is a blog for all my demos
Ten (10) Phonegap Demo Apps with Source Code

Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
OK @jesse i will visit your blog early, i have a little question again i want to ask that the camera app u sent me, it's only for Android? we can't use it for Windows?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
I don't know. I do not own windows phone.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
YOU NEED TO READ!!!!!
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Ok Boss!!
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
I also want pay thanks to you, i am really learning from you
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
@JESSE PLEASE HELP ME THE PHONEDIALER PLUGIN IS NOT WORKING..............CAN YOU GIVE ME ANSWER?
WHY I ALWAYS FAIL WHEN I TRY TO USE PLUGINS ? BY GITHUB I JUST DOWNLOAD ZIP AND UPLOAD ITS NEVER BE SUCCESSFUL DONT KNOW Y?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
DON"T SHOUT.

There are eleven (11) plugins. Try another one.
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
OK BOSS THANKS
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
@Jesse , Sir i want to ask that which plugin i can use to dial a particular Phone Number?
I used Phonedialer plugin suggested by you. But there is no any index.html file then how i can use it :( Please help. I have to complete this project soon .
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Give me some time. I am testing the plugins.
Jesse
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@saba,

Source CodePGBP-CallNumber

I tested it. It works. Replace line 43 where it says PHONE-NUMBER-HERE with the phonenumber you want to call.

Uses this plugin: https://www.npmjs.com/package/call-number

Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Thank YOu Sir :)
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Greetings for the day Sir Jesse,
u know today when i awaked at morning i decided that i have to leave this project because after continually attempts i lost my hope, mostly i spend lots of time on npm plugins, but today when i open my emails i saw ur reply How happy i am it can not be define in words :) How much big favor u did on me i can't pay it.
Thanks Alot you are really Big Champion of this community :)
Now i can again try and again can hope for this project.
My mistake was that i was searching the plugin by name" phonedialer" thats y it was showing nor found, by d way really thanks to help :)

with lots of respect
Saba
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@saba,
let me know how it is going.
Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Hi @jesse
I Installed both apps provided by you. When i am testing them, they are working properly..... but when i am using both app in jQueryMobile page.
Both of are they not working, buttons Call and Launch Camera doesn't responed lets have a look.




Whenever i used these apps with JQuery Mobile, the buttons are stopped to work and when i am using separated from it they are working.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Saba,
yes, my apps do not work with JQuery Mobile. I do not use JQuery Mobile. I can not help you with JQuery Mobile. My Apps are simple and intended only as demos (demonstration apps). My Apps are not intended to be real. They are known as "proof of concept". They show that Phonegap with with the plugin - no more.

To be clear, my apps will work with Jquery and Zepto. They are both very similar. My apps do NOT work with:
- JQueryMobile
- Bootstrap
- Ionic
- Sencha
- or any other frameworks known to me.

Best of Luck
Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Still Thanks to help me, I think i can use them with jQuery Mobile too, the great help was to find out the Correct Plugin :)'
Thanks again
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Hello @Jesse my app is working now with jQuery Mobile too. Thanks for the help


Now i have to study about php in Phonegap Build as Petra Sir said :)