Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mapp-digital/mapp-engage-ios-sdk-geotargeting-addon
https://github.com/mapp-digital/mapp-engage-ios-sdk-geotargeting-addon
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mapp-digital/mapp-engage-ios-sdk-geotargeting-addon
- Owner: mapp-digital
- Created: 2022-07-26T09:16:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T09:45:31.000Z (over 2 years ago)
- Last Synced: 2024-10-05T15:02:46.150Z (about 1 month ago)
- Language: Objective-C
- Size: 2.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MappSDKGeotargeting
===========This repository contains the Mapp Geotargeting iOS SDK, which can be use for push messages sendout at region of interests.
Integration
-----------
**Cocoa pods**```ruby
target 'project_name' do
pod 'MappSDKGeotargeting'
end
```**OR**
```ruby
target 'project_name' do
pod 'MappSDKGeotargeting', :git => 'https://github.com/MappCloud/MappSDKGeotargeting.git', :tag => '6.0.5'
end
```**Manual**
* Drag and drop the ```AppoxeeSDK.framework``` to your project.
* Drag and drop the ```AppoxeeSDKResources.bundle``` to your project.
* Drag and drop the ```AppoxeeLocationServices.framework``` to your project.
* Link ```CoreLocation.framework``` and ```SQLite3``` to your project.**Configuration file**
Make sure to provide an **AppoxeeConfig.plist** file for **AppoxeeSDK**.Implementation
-----------**Objective-C**
```objective-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[Appoxee shared] engageAndAutoIntegrateWithLaunchOptions:launchOptions andDelegate:nil with:EMC_US];
[[Appoxee shared] addObserver:self forKeyPath:@"isReady" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL];return YES;
}- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if ([keyPath isEqualToString:@"isReady"]) {[[Appoxee shared] removeObserver:self forKeyPath:@"isReady"];
[[AppoxeeLocationManager shared] enableLocationMonitoring];
}
}
```**Swift**
```swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {Appoxee.shared()?.engageAndAutoIntegrate(launchOptions: launchOptions, andDelegate: nil)
Appoxee.shared()?.addObserver(self, forKeyPath: "isReady", options: ([.new, .old]), context: nil)return true
}override func observeValue(forKeyPath keyPath: String?, of object: AnyObject?, change: [NSKeyValueChangeKey : AnyObject]?, context: UnsafeMutablePointer?) {
if (keyPath == "isReady") {
Appoxee.shared()?.removeObserver(self, forKeyPath: "isReady")
AppoxeeLocationManager.shared().enableLocationMonitoring()
}
}
```License
-------
https://mapp.com/contracts/