Add the following key to Info.plist file (String value) with the corresponding value (that you obtained when added your app to your project)
Add the following keys to Info.plist file (String value), the corresponding values will be shown to the user by iOS
If your app supports iOS add
Add the following key to Info.plist file (String value), it will be used to show a popup to the user before the provided by iOS. Only if the user accepted this first popup we request the permission to iOS.
In order to obtain a greater number of positions we suggest to enable this feature. To do this carry out these two steps:
Select your project -> Select your target -> Select 'Signing & Capabilities' tab -> tap on '+ Capability' -> select 'Background Modes' -> check 'Background fetch'
In AppDelegate add this code:
iOS 14 introduced the permission request to get the device's IDFA. In this regard, we have introduced two methods in our framework.
The first one checking the permission status:
And the second one that makes the request and returns the user's choice:
It is possible to use these methods but also the methods provided directly by iOS. There is no need to communicate to our framework the outcome of the permission. Invoke the request method as soon as possible. For example right after the enable.
Important: Before invoking the method for the request (both Geouniq and iOS) it is necessary to insert the key in the plist
In order to track geofencing events, you need to initialize a user in your Cloud4Wi account.
The method to initialize users is exposed in the WiFi SDK, so you need to integrate also the WiFi SDK into your project.
Once both the WiFi and Location SDKs are installed you can use the following snippet to initialize the customer in Cloud4Wi as soon the deviceId
is assigned to the phone. This function will initialize an anonymous user without any additional attribute or personal data associated.
In the alternative, you can use the native WiFi SDK methods to initialize a customer.