Skip to content

Boossol/tribersdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

Triber iOS SDK

Installation:

Add the SDK to your Podfile:

target 'my_target' do
  pod 'tribersdk'
end

Setup the SDK in your AppDelegate's application:willFinishLaunchingWithOptions: method:

[TriberSDK insertDelegateForApplication:application];
[TriberSDK setAppKey:@"your_triber_sdk_token"];

Optional: Setup the theme

TriberSDKTheme* theme = [[TriberSDKTheme alloc] init];
theme.textColor = [UIColor blackColor];
[TriberSDK setTheme:theme];

See below for a list of theme options


Add configuration to your project's Info.plist:

  <key>NSLocationAlwaysUsageDescription</key>
  <string>Triber a besoin de votre position !</string>
  <key>NSAppTransportSecurity</key>
  <dict>
    <key>NSAllowsArbitraryLoads</key>
    <false/>
    <key>NSExceptionDomains</key>
    <dict>
      <key>triberapp.co</key>
      <dict>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <key>NSTemporaryExceptionMinimumTLSVersion</key>
        <string>TLSv1.1</string>
      </dict>
    </dict>
  </dict>

Show the SDK's meeting points view when you need to

[TriberSDK showMeetingPoints:navigationController];

with :

  • navigationController : Navigation controller that will contain TriberSDK's view stack

Theme options:

Titles and item titles font/color:
UIFont* titlesFont;
UIColor* titlesColor;
Text block font/color
UIFont* textFont;
UIColor* textColor;
Compass view arrow color
UIColor* compassArrowColor;
Compass view distance text color
UIColor* distanceTextColor;
Background image
NSString* backgroundImage;
Meeting points list header
UIColor* meetingPointsHeaderColor;
UIColor* meetingPointsHeaderTextColor;
Meeting points list items
UIColor* meetingPointItemBackgroundColor;
UIColor* meetingPointItemTitleColor;
UIColor* meetingPointItemSubtitleColor;
Welcome screen
NSString* welcomeScreenLogo;
TriberLogoColor welcomeScreenTriberLogoColor;
"Powered by Triber" header
UIColor* poweredByTriberTextColor;
UIColor* poweredByTriberBackgroundColor;
TriberLogoColor poweredByTriberLogoColor;

Happy Tribin' ! :)

About

Triber app SDK to be integrated in iOS apps

Resources

Stars

Watchers

Forks

Packages

No packages published