jdsdk 0.0.1 copy "jdsdk: ^0.0.1" to clipboard
jdsdk: ^0.0.1 copied to clipboard

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
30
pub points
2%
popularity

Publisher

unverified uploader

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

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on jdsdk