tribally_sdk 0.1.0 copy "tribally_sdk: ^0.1.0" to clipboard
tribally_sdk: ^0.1.0 copied to clipboard

PlatformiOS

Tribally SDKs enable your users to create communities and bring in more people to talk about the things they love.

IOS only #

android coming soon

Launch in-app feed with a few lines of code #


Integrate Tribally in under 30 min #

  1. Sing up in tribally web site
  2. Get your Application Keys
    • Create a new project
    • Head over to the Integration section and note the Project ID, API Key
  3. Add Tribally Dependency
    • go to pubspec.yaml
    • add tribally_sdk: ^0.1.0
import 'package:tribally_sdk/tribally_sdk.dart';

Configure TriballyView #

Creating user and holding his unique uid on your side! So init TriballyView already with user UID and NAME.

TriballyView(
onTriballyCreated: (TriballyController controller) {
  //here you can set user credentials + project keys
  controller.setConfiguration(
    displayName: 'user name',
    uid: 'user token to identify',
    apiProject: ApiProject(
    id: 'projectId',
    api: 'apiKey');
    
}
)

To change user in the Tribally view call [setConfiguration] again with new data


Advance use #

If you want to implement your custom color scheme, use color Flutter colors in Tribally creation:

//primary color
final Color? primary;

//background color
final Color? background;

//surface color(post backgrounds)
final Color? surface;

//onSurface color(poll backgrounds)
final Color? onSurface;

//text color
final Color? text;

//subText color
final Color? subText;

//icon color(optional)
final Color? icon;

//primary color for Dark Mode(optional)
final Color? primaryDark;

Implementing Push Notifications #

Please google how to implement push notifications in your app. This plugin allows you to set user's pushToken in the Tribally. Simply call [onTriballyCreated] and

   onTriballyCreated: (TriballyController controller) {
   controller.setPushToken('pushToken');
   },

DONT FORGET TO ADD IOS PUSH CERT .p12 in IOS NOTIFICATION SECTION


Notes

  • Make sure you replace the projectId with your Tribally projectId and apiKey with your apiKey in the above code.
  • As Tribally has support for adding photos, please add Camera Usage Description and Photo Library Usage Description to your .plist file.

Issues

Feel free to submit any issue here

6
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Tribally SDKs enable your users to create communities and bring in more people to talk about the things they love.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on tribally_sdk