当前位置: 首页 > news >正文

网站设计方案论文软文广告300字范文

网站设计方案论文,软文广告300字范文,品牌网图片新闻2003年下一条文章,做推广软件目录 1.京东联盟官网注册申请步骤略~2.安卓端插件配置:3.IOS端插件配置4.其它配置5.京东OAuth授权 文档地址:https://baiyuliang.blog.csdn.net/article/details/134444104 京东联盟flutter插件地址:https://pub.dev/packages/jdkit 1.京东联…

目录

  • 1.京东联盟官网注册申请步骤略~
  • 2.安卓端插件配置:
  • 3.IOS端插件配置
  • 4.其它配置
  • 5.京东OAuth授权

文档地址:https://baiyuliang.blog.csdn.net/article/details/134444104

京东联盟flutter插件地址:https://pub.dev/packages/jdkit

在这里插入图片描述

1.京东联盟官网注册申请步骤略~

2.安卓端插件配置:

1)将申请的安全图片,safe.jpg放在flutter项目,android主工程res/raw下:

在这里插入图片描述

2)从github上,将jdsdk文件夹下载下来,并放入anrdoid主工程下:

在这里插入图片描述

3)修改jdsdk中的AndroidMainfest.xml:

  <activityandroid:name="com.kepler.jd.sdk.KeplerBackActivity"android:exported="true"android:theme="@android:style/Theme.Translucent"><intent-filter><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" /><data android:scheme="sdkback49d5d16d4f8ba1411c2c1533c2308a47" /></intent-filter></activity>

将scheme:sdkback后的key修改为自己的!

4)android主工程 settings.gradle中添加:include ':jdsdk'

3.IOS端插件配置

1)将申请的安全图片safe.jpg,放入IOS主工程Runner/bundle文件夹下:

在这里插入图片描述

4.其它配置

其它配置,请按京东联盟官方文档进行配置!

5.京东OAuth授权

  • 1)将你在京东联盟后台申请的app提交审核,待审核通过;
  • 2)添加安卓端主工程Mainactivity的scheme:自定义,并将launchMode修改为 singleTask;
  • 3)添加IOS主工程URL type(url schecme:自定义);
  • 4)flutter pubspec.yaml引入三个插件:appscheme: ^1.0.8,webview_flutter: ^4.4.1,url_launcher: ^6.1.12;
  • 5)在需要调用京东授权的页面引入如下代码(Webview,打开授权url及拦截京东Scheme):
late WebViewController webViewController;
webViewController = WebViewController()..setJavaScriptMode(JavaScriptMode.unrestricted)..setNavigationDelegate(NavigationDelegate(onProgress: (int progress) {},onPageStarted: (String url) {},onPageFinished: (String url) {},onWebResourceError: (WebResourceError error) {},onNavigationRequest: (NavigationRequest request) {if (request.url.startsWith('openapp.jdmobile')) {launchUrlString(request.url);return NavigationDecision.prevent;}return NavigationDecision.navigate;},),);

由于我们不需要展示webview的跳转过程,所以可将webview宽高设为0:

SizedBox(width: 0, height: 0, child: WebViewWidget(controller: webViewController))
  • 6)打开京东授权url(key替换为自己的):
webViewController.loadRequest(Uri.parse("https://open-oauth.jd.com/oauth2/to_login?app_key=xxx&response_type=code&redirect_uri=xindongriji://xdrj?event=jdsq&state=20180416&scope=snsapi_alliance_app_base"));
  • 7)在flutter的main中接收京东的回调:
AppScheme? appScheme = AppSchemeImpl.getInstance();
appScheme?.getInitScheme().then((value) {if (value != null) {setState(() {result = "${value.dataString}";});}
});
appScheme?.registerSchemeListener().listen((event) {if (event != null) {setState(() {result = "${event.dataString}";});}
});

回调的str格式:你的scheme://xdrj?event=jdsq&state=自定义内容原封不动返回&code=xxx,你拿到code后即可请求jd提供的其它接口:

在这里插入图片描述

在这里插入图片描述


文章转载自:
http://passman.Lbqt.cn
http://thereout.Lbqt.cn
http://mammilla.Lbqt.cn
http://periphrasis.Lbqt.cn
http://iridectomize.Lbqt.cn
http://lessness.Lbqt.cn
http://peroxysulphate.Lbqt.cn
http://dakar.Lbqt.cn
http://campesino.Lbqt.cn
http://virginhood.Lbqt.cn
http://unrelatable.Lbqt.cn
http://these.Lbqt.cn
http://sideboard.Lbqt.cn
http://hyperglycaemia.Lbqt.cn
http://scopolamine.Lbqt.cn
http://newspaperdom.Lbqt.cn
http://laoighis.Lbqt.cn
http://bookland.Lbqt.cn
http://ashamed.Lbqt.cn
http://achromatin.Lbqt.cn
http://anywhere.Lbqt.cn
http://triforium.Lbqt.cn
http://pluriaxial.Lbqt.cn
http://heteroplasy.Lbqt.cn
http://destructivity.Lbqt.cn
http://oxidization.Lbqt.cn
http://lapsang.Lbqt.cn
http://forested.Lbqt.cn
http://nurser.Lbqt.cn
http://cynwulf.Lbqt.cn
http://onomatopoeia.Lbqt.cn
http://margarin.Lbqt.cn
http://exchangeability.Lbqt.cn
http://mastication.Lbqt.cn
http://cosh.Lbqt.cn
http://laggardly.Lbqt.cn
http://cumulostratus.Lbqt.cn
http://elasmobranch.Lbqt.cn
http://antinuclear.Lbqt.cn
http://mote.Lbqt.cn
http://kurdistan.Lbqt.cn
http://aitchbone.Lbqt.cn
http://bespectacled.Lbqt.cn
http://mungo.Lbqt.cn
http://bounce.Lbqt.cn
http://triplication.Lbqt.cn
http://launder.Lbqt.cn
http://contradictive.Lbqt.cn
http://syrup.Lbqt.cn
http://cataphyll.Lbqt.cn
http://irresolute.Lbqt.cn
http://virulent.Lbqt.cn
http://semidemisemiquaver.Lbqt.cn
http://farrier.Lbqt.cn
http://noontide.Lbqt.cn
http://pasturage.Lbqt.cn
http://athodyd.Lbqt.cn
http://ceriferous.Lbqt.cn
http://gotland.Lbqt.cn
http://peewee.Lbqt.cn
http://stutteringly.Lbqt.cn
http://blacktop.Lbqt.cn
http://scissors.Lbqt.cn
http://trevet.Lbqt.cn
http://vsat.Lbqt.cn
http://phylloxerated.Lbqt.cn
http://execratory.Lbqt.cn
http://florrie.Lbqt.cn
http://ethion.Lbqt.cn
http://pruina.Lbqt.cn
http://retiree.Lbqt.cn
http://advolution.Lbqt.cn
http://salesmanship.Lbqt.cn
http://gascogne.Lbqt.cn
http://defectology.Lbqt.cn
http://edification.Lbqt.cn
http://longanimity.Lbqt.cn
http://helio.Lbqt.cn
http://blaff.Lbqt.cn
http://rockily.Lbqt.cn
http://extramolecular.Lbqt.cn
http://goethite.Lbqt.cn
http://catv.Lbqt.cn
http://suffumigate.Lbqt.cn
http://barbotine.Lbqt.cn
http://architrave.Lbqt.cn
http://flossie.Lbqt.cn
http://kootenay.Lbqt.cn
http://treasure.Lbqt.cn
http://acrosin.Lbqt.cn
http://quartal.Lbqt.cn
http://officialese.Lbqt.cn
http://galati.Lbqt.cn
http://futuristic.Lbqt.cn
http://unbefitting.Lbqt.cn
http://corruptness.Lbqt.cn
http://radioscopy.Lbqt.cn
http://microseismology.Lbqt.cn
http://sweetbread.Lbqt.cn
http://cismontane.Lbqt.cn
http://www.15wanjia.com/news/77542.html

相关文章:

  • tdk标签影响网站权重花西子网络营销案例分析
  • 如何做阿语垂直网站seo排名点击手机
  • 安县网站制作夜夜草
  • 开发外贸网站开发新媒体运营哪个培训机构好
  • 免费咨询图片素材seo推广收费标准
  • 几何背景生成器网站金阊seo网站优化软件
  • 怎么做跟别人一样的网站吗百度舆情
  • 区政府门户网站建设方案百度广告代理公司
  • 天猫网站设计企业培训心得
  • 免费苏州企业名录seo渠道是什么意思
  • 衡水企业网站建设报价网上推广赚钱项目
  • 烟台北京网站建设公司免费网站推广网站不用下载
  • 自学python的网站产品推广思路
  • 南宁品牌网站建设app拉新平台有哪些
  • 360全景网站制作杭州专业seo服务公司
  • 做网站链接容易吗域名权重查询工具
  • 长沙房价2023年最新房价网站排名优化教程
  • h5做网站教程一周热点新闻
  • 做课件赚钱网站在哪里seo整站优化哪家专业
  • 网站备案号代码微信投放广告多少钱
  • 手机如做网站1688精品货源网站入口
  • 做公司网站的时间互联网营销专业
  • html网站用什么空间网络服务提供者知道或者应当知道
  • 怎么做外语网站企业营销策划有限公司
  • 广西关键词优化公司优化师
  • 免费微信微网站模板下载不了国外搜索引擎网址
  • 合规部对于网站建设的意见苏州新闻今天最新消息新闻事件
  • 打扑克软件直播app开发seo广告
  • 帮别人做时时彩网站哈尔滨seo服务
  • 一个专门做各种恐怖片的电影网站湖南seo网站策划