Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Create projects and apps in your console and get your mobile key
Add pod 'c4w-location-sdk'
to your Podfile and run pod install
. More details CocoaPods here.
For other integration methods see here
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
To initialize the framework and allow it to collect data in the background it is necessary to add this call in the didFinishLaunchingWithOptions
method (this method don't start the tracking engine)
To start the tracking engine call enable method.
Example:
Add pod 'c4w-location-sdk'
to your Podfile and run pod install
. More details CocoaPods here.
Repository: https://github.com/Cloud4Wi-Create/iOS-LocationSDK-SwiftPackage
To start the tracking engine call enable method. You can do that into the didFinishLaunchingWithOptions
method. It is possible to enable directly the tracking engine when the initialize method is called. Once enabled, the SDK will not stop until you disable it by calling GeoUniq.sharedInstance().disable()
If the application does not have the permissions or has not yet requested them, the enable method will request them.
To initialize the framework and allow it to collect data in the background it is necessary to add this call in the didFinishLaunchingWithOptions
method (this method don't start the tracking engine)
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.
The method GeoUniq.sharedInstance().resetDeviceId()
reset the Device Id by invoking a new device registration.
13.3
5.2 with "Build Libraries for Distribution" enabled (in case of updating the swift version of the app it isn't necessary to update the framework).
3.0.0 - Changelog
The method GeoUniq.sharedInstance().getDeviceId()
return the id relative to the device if it has been registered, nil otherwise.
The geofence entry event is triggered in all conditions ( even when the user downloads and installs the app and he is inside the geofence)
----------------------------------------------------------
Return strings instead enum on tracking trasparency methods
----------------------------------------------------------
Fix on geofence paths
----------------------------------------------------------
Delete warning on location manager
----------------------------------------------------------
Possibility to reset the device id (new registration)
----------------------------------------------------------
Delete background task warning
Mitigation error FRONTBOARD 2343432205
----------------------------------------------------------
Minor bug fixes
----------------------------------------------------------
LOI
Trigger
Minor bug fixes
The locations of interest, such as home and work locations, are places identified based on the visits detected by the SDK.