# First Use Guide

## Overview

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.

## Getting Started

Once you've gotten your main Servoy solution created, install the Phonegap Module. This is available under the [Servoy Package Manager](/reference/servoy-developer/package-manager.md). Alternatively you can also download this module directly from our [github repository](https://github.com/servoy/svyPhonegap).

<figure><img src="/files/ELamXaGhqNUmnVOBWP09" alt=""><figcaption></figcaption></figure>

## Initialize the module

Select your main solution and hook up the onOpen event to a new scope method.

<figure><img src="/files/3v72O7f05pzFGE5PY0ts" alt=""><figcaption></figcaption></figure>

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

```javascript
function onSolutionOpen(arg, queryParams) {
//initialize phonegap module
scopes.phonegap.onSolutionOpen(arg,queryParams, onReadyCallback);

}	

function onReadyCallback(){
//device is ready, get information from a plugin
application.output(plugins.svyphonegapDevice.getDeviceInfo());
}
```

## Integrating with your first plugin

Integration examples can be found per plugin for example the [Camera plugin guide](/guides/develop/programming-guide/extensions/modules/svyphonegap/camera.md).

## Building a mobile binary

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](/guides/deploy.md) the Servoy solution. Then follow the [Building Native Binary](/guides/develop/mobile-development/exporting-to-an-app-store.md) guide.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/guides/develop/programming-guide/extensions/modules/svyphonegap/first-use-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
