jdsdk 0.0.1
jdsdk: ^0.0.1

Flutter Android iOS

The implementation of Jingdong SDK on Flutter, through which you can realize the wake-up Jingdong app to open any URL of Jingdong, including product details and other functions.

京东sdk的唤醒 #

京东sdk在Flutter上的实现,通过它可以实现唤醒京东app打开京东任意的url,包括商品详情等功能。

使用需知 #

京东官方接入文档,在android和ios分别加入安全图片。

ios #

在 Info.plist 文件中添加

    <key>LSApplicationQueriesSchemes</key>
 	<array>
 		<string>openapp.jdmobile</string>
 		<string>jdlogin</string>
 	</array>
 	<key>CFBundleURLTypes</key>
    	<array>
    		<dict>
    			<key>CFBundleTypeRole</key>
    			<string>Editor</string>
    			<key>CFBundleURLSchemes</key>
    			<array>
    				<string>sdkback</string>
    				<string>此处填入appkey</string>
    			</array>
    		</dict>
    	</array>

导入依赖 #

  import 'package:jdsdk/jdsdk.dart';

初始化 #


  Jdsdk.init(appKey: '', appSecret: '');

打开京东任意URL #

  Jdsdk.openUrl( url: 'https://item.m.jd.com/product/100009963992.html');
0
likes
90
pub points
0%
popularity

The implementation of Jingdong SDK on Flutter, through which you can realize the wake-up Jingdong app to open any URL of Jingdong, including product details and other functions.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

chaowen1110@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on jdsdk