fluwx 4.0.0+1 copy "fluwx: ^4.0.0+1" to clipboard
fluwx: ^4.0.0+1 copied to clipboard

The capability of implementing WeChat SDKs in Flutter. With Fluwx, developers can use WeChatSDK easily, such as sharing, payment, lanuch mini program and etc.

Fluwx #

pub package Build status #

logo

中文请移步此处

What's Fluwx #

Fluwx is flutter plugin for WeChatSDK which allows developers to call
WeChatSDK native APIs.

Fluwx 4.0 is coming with powerful enhancements!

Join QQ Group now: 1003811176

QQGroup

Capability #

  • Share images, texts, music and so on to WeChat, including session, favorite and timeline.
  • Payment with WeChat.
  • Get auth code before you login in with WeChat.
  • Launch mini program in WeChat.
  • Subscribe Message.
  • Just open WeChat app.
  • Launch app From wechat link.

Preparation #

Migrate to V4 now

Fluwx is good but not God. You'd better read official documents before integrating Fluwx. Then you'll understand how to generate Android signature, what's universal link for iOS, how to add URL schema for iOS and so on.

Watch Charged Video

Install #

Add the following dependencies in your pubspec.yaml file:

Fluwx with pay:

dependencies:
  fluwx: ^${latestVersion}

pub package

Fluwx without pay:

Developers who need to exclude payment for iOS can enable no_pay in pubspec.yaml.

pub package

NOTE: Never forget to replace ^${latestVersion} with actual version.

Configurations #

Fluwx enables multiple configurations in the section fluwx of pubspec.yaml from v4, you can reference pubspec.yaml for more details.

For iOS, some configurations, such as url_scheme,universal_link, LSApplicationQueriesSchemes, can be configured by fluwx, what you need to do is to fill configurations in pubspec.yaml

  • app_id. Required. It'll be used to generate scheme on iOS and register WxApi on Android side if app is cold boot.
  • debug_logging. Optional. Enable logs by setting it true.
  • flutter_activity. Optional. This is usually used by cold boot from WeChat on Android. Fluwx will try to launch launcher activity if not set.
  • universal_link. Required for iOS. It'll be used to generate universal link on your projects.

Register WxAPI #

Register your app via fluwx if necessary.

Fluwx fluwx = Fluwx();
fluwx.registerApi(appId: "wxd930ea5d5a228f5f",universalLink: "https://your.univerallink.com/link/");

The param universalLink only works with iOS. You can read this document to learn how to create universalLink. You can also learn how to add URL schema, how to add LSApplicationQueriesSchemes in your iOS project. This is essential.

For Android, you shall know to how generate signature for your app in this page. And you have to understand the difference between debug signature and release signature. Once the signature is incorrect, then you'll get errCode = -1.

Capability Document #

For more capabilities, you can read the public functions of fluwx.

QA #

These questions maybe help

Buy the writer a cup of coffee。

Subscribe Us On WeChat #

subscribe

LICENSE #

Copyright 2018 OpenFlutter Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for
additional information regarding copyright ownership.  The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License.  You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
License for the specific language governing permissions and limitations under
the License.
195
likes
0
pub points
97%
popularity

Publisher

unverified uploader

The capability of implementing WeChat SDKs in Flutter. With Fluwx, developers can use WeChatSDK easily, such as sharing, payment, lanuch mini program and etc.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on fluwx