Installation

How to install our plugin

Getting Started

  • To get started with our SDK the first step is to sign up.
  • After you do that you can go to the Install section and get your application-id.

📘

Your Applozic Application-Id

Your application-id is used to identify your Applozic application and serves as a container your data. It is also used in authentication.

Prerequisites

Applications that use Applozic should target Xcode 11 (or later) and AndroidX.

Installation

Android

Configure the AndroidManifest.xml by Open the folder file YOUR_PROJECT_NAME/android/app/src/main/AndroidManifest.xml add an entry for metadata in the AndroidManifest.xml file within the application Tag and change the resource YOUR_LAUNCHER_SMALL_ICON and pass the transparent icon.

<meta-data android:name="com.applozic.mobicomkit.notification.smallIcon"
           android:resource="<YOUR_LAUNCHER_SMALL_ICON>" /> <!-- Replace this with a valid resource name for Launcher white Icon -->

 <meta-data android:name="com.package.name"
            android:value="${applicationId}" />

 <activity android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
            android:configChanges="keyboardHidden|screenSize|smallestScreenSize|screenLayout|orientation"
            android:label="@string/app_name"
            android:parentActivityName=".MainActivity"
            android:theme="@style/ApplozicTheme"
            android:launchMode="singleTask"
            tools:node="replace">
            <!-- Parent activity meta-data to support API level 7+ -->
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".MainActivity" />
</activity>

Add the tools to your manifest at top of the AndroidManifest.xml file check the below code

<?xml version='1.0' encoding='utf-8'?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"

iOS

App Store requires any app which accesses camera, contacts, gallery, location, a microphone to add the description of why does your app needs to access these features.

In the ios/YOUR_PROJECT_NAME/Info.plist file of your project. Please add the following permissions

<key>NSCameraUsageDescription</key>
<string>Allow Camera</string>
<key>NSContactsUsageDescription</key>
<string>Allow Contacts</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allow location sharing!!</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow MicroPhone</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow Photos</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow write access</string>

Add dependency for applozic in your pubspec.yaml file:

dependencies:
  # other dependencies
 applozic_flutter: ^0.0.4

Then run flutter pub get to download and add the SDK:

For iOS, you will have to additionally go to you {APPLICATION_ROOT}/ios directory and install the pod files:

pod install

🚧

Note

You will need to have CocoaPods installed. Here is their website.

📘

iOS Version

Applozic iOS requires the minimum iOS platform to be 10 and it uses dynamic frameworks.

Add the code given below to the pod file for your application located at {APPLICATION_ROOT}/ios/Podfile.

platform :ios, '10.0'
use_frameworks!

Finally import applozic_flutter in your .dart file:

import 'package:applozic_flutter/applozic_flutter.dart';

You have successfully integrated the Apploizic-Flutter-Plugin to your app.


What’s Next

Authentication

Did this page help you?