Hello,
Here are several standard Apache Cordova samples implemented inside DevExtreme applications. To test them, right-click a sample project in the Visual Studio Solution Explorer and choose 'Build Native Application'.
UPDATE:
In fact, there is no need to do anything in order to make it possible to use PhoneGap API in a DevExtreme application. You do not need to care about including any files in a project or doing anything except writing code.
So, if you need to use PhoneGap API, simply write code according to the PhoneGap documentation. We are using version 2.9.0. When you build a native package or scan the QR code that is available when you run the application in Visual Studio, the cordova.js file will be automatically included.
However, project templates used by default support only the official PhoneGap API. In order to use any third-party PhoneGap plug-in, you need to create your own native projects as described in the Getting Started Guides. Then, follow the plug-in installation guide to include the plug-in into new projects.
UPDATE1:
With the latest DevExtreme version (greater than 14.2.6), it is required to check the following plugins on the PhoneGap page in the project properties: 'org.apache.cordova.camera'
-
Thank you, exactly what I was looking for! :)
The camera app is quite slow and crashes after taking 2 pictures on my Sony Xperia Arc S.
Any solution?Hello Sigurd,
For your convenience, I have created a separate thread to discuss this issue: The example provided in the Q434945 thread works slowly and crash. Please bear with us, we will answer your question as soon as possible.How do you test these samples from Windows platform using the DevExpress Courier application? As I understand the Courier applicaiton has PhoneGap built-in. I have tried setting the "Run Simulator" option, then scanning the barcode withn the Courier application, but none of the device/hardware interafaces seem to work (I am able to test other apps that don't use PhoneGap using this approach).
Thanks!Hi Sylvester,
We kindly ask you not to post your questions to the tickets that were created by other customers. If you wish to discuss any problem, please create a new thread. Post all messages regarding this issue to this ticket What PhoneGap API is supported by DevExpress Courier application.Dear DXteam,
please update the solution above to change cordova-2.0.0.js file to cordova.js. I spent 3 hours this night searching for the mistake - it were just the letters -2.0.0 which I had too much ;)Dear DXteam,
please update the solution above to change cordova-2.0.0.js file to cordova.js for actual DXTREME 2.4. I spent 3 hours this night searching for the mistake - it were just the letters -2.0.0 which I had too much ;)
Thanks in advance!Hi André,
We have update these projects accordingly. In addition, please refer to the How to store data to a local file using PhoneGap API example.devexpress team's example not good, not realy heplful for problem that developer worried.
Do you any example to get device id .... for multi-platform in visual studioHello Banh,
I've created a separate ticket on your behalf (T409569: Do you have any example to get device id .... for multi-platform in visual studio). It has been placed in our processing queue and will be answered shortly.same here i need an example to get uuid for multi platform in visual studio
Hello John,
I've created a separate ticket on your behalf (T512009: DevExtreme SPA - How to get a device guid). It has been placed in our processing queue and will be answered shortly.