svyPhonegap
Last updated
Was this helpful?
Last updated
Was this helpful?
svyPhonegap is a service to provide native mobile functionality from a Servoy application. This guide will help you integrate and build your first mobile app using the service.
Once you've gotten your main Servoy solution created, install the Phonegap Module. This is available under the Servoy Package Manager. Alternatively you can also download this module directly from our github repository.
Select your main solution and hook up the onOpen event to a new scope method.
You can also hook up a callback method if you need access to native functionality as soon as the device is ready. Your code might look like below
Integration examples can be found per plugin for example the Camera plugin guide.
To see a Servoy solution that utilizes this module check out svyMobile.
Once you are satisfied with the main solution and code. We will want to be able to export and run this app on a mobile device. First deploy the Servoy solution. Then follow the Building Native Binary guide.
For the web services to function, we need to have also installed the particular phonegap plugins mentioned.
Browser In-app browser related functions
Camera Camera and media functions
Location Geolocation functionality
Push Notifications Push Notification functionality