PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a project for Apple Watch with WINDEV Mobile
  • Developing an application for Apple Watch with WINDEV Mobile
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
An Apple Watch application is an application intended for a watch associated with an iOS device (phone, tablet, ...).
An Apple Watch application is always associated with an iOS application with which it can exchange data.
Several steps must be performed to develop an Apple Watch application:
This help page presents the creation of an Apple Watch project and its development. Its generation and its compilation are identical to the ones for a standard iOS application.
Creating a project for Apple Watch with WINDEV Mobile
To create an Apple Watch project with WINDEV Mobile:
  1. Create a project for iOS (see Developing an application for iPhone/iPad for more details).
  2. Create an Apple Watch configuration:
    • Start the wizard for creating a new configuration: on the "Project" pane, in the "Project configuration" group, click "New configuration" and select "New configuration (via wizard)".
      See Project configuration for more details.
    • In the "General information" step of the wizard, select "Apple Watch application".
    • In the "Associated iOS application" step of the wizard, select the iOS configuration of the project associated with the Apple Watch configuration.
Developing an application for Apple Watch with WINDEV Mobile
The method for developing an Apple Watch application and its associated iOS application is identical to the method for developing a standard application.
For the iOS application, you create the different elements of your application. The method for developing the project is identical to the method for developing a WINDEV Mobile project. However, some specific features of the development for iOS must be complied with. See Specific features of iOS applications for more details.
For the Apple Watch application, you can:
  • create windows. These windows are in Apple Watch format.
  • add controls into the windows. Only the Static, Button and Image controls are available in an Apple Watch application.
  • use WLanguage functions, properties and types. The icon is used to find out whether the feature is available in Apple Watch.
The iOS application and the Apple Watch application can exchange data by using the following functions:
awProcedureGetAndSendInfoSpecifies the WLanguage procedure that will be called when receiving information coming from awSendAndGetInfo.
awProcedureGetInfoSpecifies the WLanguage procedure that will be called when receiving information coming from awSendInfo.
awSendAndGetInfoSends data from an iOS phone to an Apple Watch (or conversely) while expecting a response.
awSendInfoSends an information from an iOS phone to an Apple Watch (or conversely).
When the development is over, you have the ability to generate the Xcode project used to compile the Apple Watch application and its associated iOS application on MAC:
  1. Click among the quick access buttons.
  2. Choose (if necessary) the first window displayed on the different platforms (iPhone, iPad and Apple Watch.
  3. The generation wizard starts. See Generating the application for more details.
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment