/
iOS Geofence Modülü
iOS Geofence Modülü
Geofencing
Uygulamanızda konum hizmetlerini etkinleştirmek için öncelikle aşağıdaki anahtarları Info.plist dosyanıza eklemeniz gerekir.
NSLocationAlwaysAndWhenInUseUsageDescription
NSLocationWhenInUseUsageDescription
Bu izinlerin örnek uygulaması aşağıdaki gibidir:
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>We need access to your location for better user experience.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We need access to your location for better user experience.</string>
Ayrıca bölgeleri izlemek, bölge listesini yenilemek ve push bildirimlerini almak için Info.plist dosyanızda UIBackgroundModes altına aşağıdaki anahtarları eklemeniz gerekir.
<array>
<string>fetch</string>
<string>location</string>
<string>remote-notification</string>
</array>
Ardından RelatedDigital.initialize metodundan hemen sonra aşağıdaki kodu eklemelisiniz.
RelatedDigital.geofenceEnabled = true
, multiple selections available,
Related content
Ekleme ve Kurulum
Ekleme ve Kurulum
Read with this
Geofence
More like this
In App Notifications Modülü
In App Notifications Modülü
Read with this
Geofence Module
Geofence Module
More like this
Veri Gönderimi
Veri Gönderimi
Read with this
Geofence Modülü
Geofence Modülü
More like this
Copyright 2020 Related Digital