Installation

Requirements

  • Android API version 26 or higher

  • iOS version 14.5 or higher

Installation

Here is how to install the Wepin iOS SDK.

install Wepin via pub

The Wepin Flutter SDK is available on pub.dev, and you can install it using the following command or by adding it as a dependency in your app's pubspec.yaml.

Add wepin_flutter via flutter pub add command

$ flutter pub add wepin_flutter

Add wepin_flutter to the dependencies in your pubspec.yaml

dependencies:
    wepin_flutter: ^0.0.4

For iOS

Modify Info file

In Xcode, you need to register URL Schemes in the Info file.

The value of URL Schemes should be wepin. + appId (assigned during registration)

Make sure that the App Bundle ID is not allowed to contain any special characters other than '+', '-', '.'. (Refer to: https://datatracker.ietf.org/doc/html/rfc2396)

For Android

Modify AndroidManifest

To use Wepin in your app, you need to modify the AndroidManifest.xml file of your app.

Add Permissions

Add the following permission to the main Activity of your app to use Wepin.

<uses-permission android:name="android.permission.INTERNET" />

Add Intent Filter for Wepin Activity

You need to add an intent filter for the Wepin activity in your app's AndroidManifest.xml. The schema value you add should be wepin. + appId (assigned during registration)

<activity
    android:name="io.wepin.widget.WepinMainActivity"
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!--For Deep Link => Urlscheme Format : wepin. + appID-->
        <data
            android:scheme="wepin.88889999000000000000000000000000"
            />
    </intent-filter>
</activity>

Release

The released package versions can be found on the GitHub repository below.

Last updated