ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
  • Overview
  • Steps to follow
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Notification Push: iOS configuration
Overview
To use the Push notifications in iOS, you must have a Google account and you must perform a specific configuration.
This help page presents the different operations to perform.
Warning: It is not possible to test Push Notifications with an iOS application running WMDev. Indeed, the WINDEV Mobile application must be compiled in Mac to have the certificate required for Push notifications.
Steps to follow
Follow these steps:
1. Enabling the push notifications
To enable the Push notifications, connect to the "provisioning portal" of iOS and retrieve the certificates associated with the push.
To do so, connect to the portal and click "+" at the top right:
The portal proposes to create a certificate:
Two certificates must be created:
  • a certificate for the test notifications ("SandBox").
  • a certificate for the notifications in release.
You can now retrieve the two generated ".cer" files.
2. Installing the certificates
These certificates must be installed on the Mac used to generate the iOS application. This computer will also receive the push notifications.
To install the certificates:
  • Double-click the file name. The certificate is automatically added into the keychain access:
  • Export certificates: Select "Export" from the certificate context menu (right-click). A window is displayed:
Remarks:
  • It is important to export in "p12" format in order for the private key to be found inside the certificate.
  • A password can be specified to protect the exported certificate.
3. Programming the application
Once the certificate has been exported, it can be used:
// TopicID correspond à l'identifiant du Bundle spécifié à l'étape "Informations générales"
// de l'assistant de génération du projet Xcode
TopicID is string = "fr.pcsoft.monprojetios"
t is array of Buffers
MaNotif is Notification
MaNotif.Message = "Notification de test"

ListeReponse is WDPushServer.ListeIdentifiantsAPNResponse

ListeReponse = WDPushServer.ListeIdentifiantsAPN()

FOR i = 1 _TO_ ListeReponse.ListeIdentifiantsAPNResult..Count
	bufTest is Buffer = ListeReponse.ListeIdentifiantsAPNResult[i]
	Add(t, bufTest)
	Trace(bufTest)
END

NotifPushSend(MaNotif, t, "C:\Mes Certificats\aps_production.p12", "mdp", 
							TopicID, typeServiceIOSTest)
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help