Netmera 3.23.5

Netmera 3.23.5

TestsTested
LangLanguage Obj-CObjective C
License Unknown
ReleasedLast Release Mar 2024

Maintained by Yavuz Nuzumlali, Netmera SDK, NetmeraSDK.



Netmera 3.23.5

Netmera iOS SDK

Platform Swift Package Manager compatible License

Netmera iOS SDK for Netmera mobile app engagement platform

Know & understand your app users, send them targeted push notification & popup campaigns, and analyze results with Netmera! Netmera iOS SDK provides you set of tools to work seamlessly with Netmera User Engagement platform. For details, please see https://developer.netmera.com

Installation

Netmera will be compatible with the lastest public release of Swift.

Requirements

  • iOS 9.0+
  • Xcode 11.0+

Analytics is available through CocoaPods and Carthage.

CocoaPods

pod "Netmera"

For NotificationServiceExtension

pod "Netmera/NotificationServiceExtension"

For NotificationContentExtension

pod "Netmera/NotificationContentExtension"

For Without AdId Support

pod 'Netmera/NetmeraWithoutAdId'

Swift Package Manager(SPM)

In Xcode, select File > Add Packages..

Enter the package URL for this repository https://github.com/Netmera/netmera-ios.git.

Carthage

// TODO: Feature

API

See Netmera's iOS SDK API

Usage

Start

in Swift

import Netmera

didFinishLaunchingWithOptions in AppDelegate

      Netmera.start()
      Netmera.setBaseURL("{BASE_URL}") // Optional
      Netmera.setAPIKey("{apiKey}")
      Netmera.setAppGroupName("{app.group.name}") // Optional if you want use notification content extension

      // Request notifcation authorization.
      Netmera.requestPushNotificationAuthorization(forTypes: [.alert, .sound, .badge])
      Netmera.setLogLevel(NetmeraLogLevel.debug)

in Objective-c

#import <Netmera/Netmera.h>

didFinishLaunchingWithOptions in AppDelegate

    [Netmera setLogLevel:NetmeraLogLevelDebug];
    [Netmera start];
    [Netmera setAPIKey:@"{API_KEY}"];
    [Netmera setBaseURL:@"{BASE_URL}"]; // Optional
    [Netmera setAppGroupName:@"app.group.name"]; // Optional if you want use notification content extension

Start/Stop Data tracking

It will stop/start all events and user update request.

Stop

  [Netmera stopDataTransfer];

Start

  [Netmera startDataTransfer];

User Category Preferences

Fetch category preferences of the user. It will return category preference list. Each category preference data includes id, name and enable status.

    Netmera.getUserCategoryPreferenceList { categories, error in
      if let categories = categories {
        print(categories)
      } else if let error = error {
        print(error)
      }
    }

Manage preference of category. To switch preference status of category with given id.

    Netmera.setUserCategoryPreferenceWithCategoryId("{categoryId}", categoryEnabled: {true/false}) { error in
        ...
    }

Change Log

See Netmera's iOS SDK Change Log.

Support

[email protected]

License

Netmera is distributed under the Apache license. See LICENSE for details.