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

绵阳市公司网站建设seo站外推广有哪些

绵阳市公司网站建设,seo站外推广有哪些,网页游戏网站官网,仿站网站开发集成FCM官方文档 Firebace主页面 将 Firebase 添加到您的 Android 应用 1、进入Firebace页面,创建自己的项目 2、点击自己创建好的项目,在右侧选择Cloud Messaging 3、点击Android去创建 google-services.json 4、将下载的 google-services.json 文件…

集成FCM官方文档

Firebace主页面

将 Firebase 添加到您的 Android 应用

1、进入Firebace页面,创建自己的项目

2、点击自己创建好的项目,在右侧选择Cloud Messaging

3、点击Android去创建 google-services.json

 

4、将下载的 google-services.json 文件移到您的模块(应用级)根目录中

5、添加相关SDK(根据自己AGP版本去添加对应的SDK版本,否则可能会编译失败) 

将该插件作为依赖项添加到您的项目级 build.gradle 文件中:

根级(项目级)Gradle 文件 (<project>/build.gradle):

plugins {// ...// Add the dependency for the Google services Gradle pluginid 'com.google.gms.google-services' version '4.4.2' apply false}

然后,在模块(应用级) build.gradle 文件中,同时添加要在您的应用中使用的 google-services 插件和任何 Firebase SDK:

模块(应用级)Gradle 文件 (<project>/<app-module>/build.gradle):

plugins {id 'com.android.application'// Add the Google services Gradle pluginid 'com.google.gms.google-services'...
}dependencies {// Import the Firebase BoMimplementation platform('com.google.firebase:firebase-bom:33.6.0')// TODO: Add the dependencies for Firebase products you want to use// When using the BoM, don't specify versions in Firebase dependenciesimplementation 'com.google.firebase:firebase-analytics'// Add the dependencies for any other desired Firebase products// https://firebase.google.com/docs/android/setup#available-librariesimplementation 'com.google.firebase:firebase-messaging:24.0.3'
}

重写FirebaseMessagingService 

public class MyFirebaseMessagingService extends FirebaseMessagingService {private static final String TAG = MyFirebaseMessagingService.class.getSimpleName();/*** 监听推送的消息* 三种情况:* 1,通知时:* 当应用处于前台的时候,推送的消息会走onMessageReceived方法,处于后台时走系统托盘。* 2,数据时:* 当应用处于前、后台的时候,会走onMessageReceived方法。* 3,通知且携带数据:* 当应用处于前台的时候,推送的消息会走onMessageReceived方法,处于后台时,通知走系统托盘,数据走Intent 的 extra 中(点击通知栏后)。*/@Overridepublic void onMessageReceived(@NonNull RemoteMessage message) {}/*** 当有新的Firebase token 时的回调* 第一次安装app 获取到的 pushtoken*/@Overridepublic void onNewToken(@NonNull String token) {//token 传递给后端//在Firebase控制台测试push的时候,需要将token配置进去Logger.i(TAG, "onNewToken =" + token);}}
<serviceandroid:name="com.xx.xx.push.fcm.MyFirebaseMessagingService"android:exported="false"><intent-filter><action android:name="com.google.firebase.MESSAGING_EVENT" /></intent-filter></service>

完成以上工作就可以正常接收到消息了

注意:系统设置中需要开启通知权限

控制台调试

进入Firebase Messaging页面,点击制作首个宣传活动

将设备上生成的token添加进去

问题

如果杀进程后接收不到FCM消息,
方法1:进入系统设置-找到自己的应用-找到电池-点进去-将受限制改成不受限制或者优化
方法2:进入系统设置-电池-后台使用限制-自定运行应用程序-找到自己的应用选上

设置后,进程被杀进后会被系统拉起

方法1设置完后,去设置查看方法2也被设置上了;反之亦然

问题相关文档​​​​​​​

stackoverflow

阿里云​​​​​​​


文章转载自:
http://atmospherics.c7629.cn
http://gemological.c7629.cn
http://overprice.c7629.cn
http://bolo.c7629.cn
http://keystoner.c7629.cn
http://retinacular.c7629.cn
http://chita.c7629.cn
http://jordan.c7629.cn
http://psychobiology.c7629.cn
http://poort.c7629.cn
http://windowsill.c7629.cn
http://salerno.c7629.cn
http://gentlehearted.c7629.cn
http://interstitialcy.c7629.cn
http://torchlight.c7629.cn
http://evict.c7629.cn
http://src.c7629.cn
http://homology.c7629.cn
http://mnemotechny.c7629.cn
http://avowal.c7629.cn
http://matsumoto.c7629.cn
http://leonard.c7629.cn
http://cassaba.c7629.cn
http://dilative.c7629.cn
http://hippomaniac.c7629.cn
http://careerman.c7629.cn
http://worryingly.c7629.cn
http://feeze.c7629.cn
http://cystinosis.c7629.cn
http://sewing.c7629.cn
http://panouchi.c7629.cn
http://perbromate.c7629.cn
http://nibelungenlied.c7629.cn
http://samfu.c7629.cn
http://tympan.c7629.cn
http://statute.c7629.cn
http://encephalomalacia.c7629.cn
http://agripower.c7629.cn
http://hyperosmia.c7629.cn
http://sarcomere.c7629.cn
http://nowackiite.c7629.cn
http://rumba.c7629.cn
http://counterreconnaissance.c7629.cn
http://corrasive.c7629.cn
http://inamorato.c7629.cn
http://detroit.c7629.cn
http://mallanders.c7629.cn
http://spruik.c7629.cn
http://hyaloplasmic.c7629.cn
http://mistletoe.c7629.cn
http://foi.c7629.cn
http://coquille.c7629.cn
http://drily.c7629.cn
http://unhip.c7629.cn
http://collectorate.c7629.cn
http://provisionally.c7629.cn
http://planography.c7629.cn
http://colligation.c7629.cn
http://claudia.c7629.cn
http://valetudinary.c7629.cn
http://gofer.c7629.cn
http://valvate.c7629.cn
http://sdrs.c7629.cn
http://stepped.c7629.cn
http://gmt.c7629.cn
http://kingdom.c7629.cn
http://apogee.c7629.cn
http://tritheism.c7629.cn
http://chilliness.c7629.cn
http://magilp.c7629.cn
http://chaffcutter.c7629.cn
http://jasper.c7629.cn
http://mule.c7629.cn
http://incubus.c7629.cn
http://bryozoa.c7629.cn
http://inez.c7629.cn
http://hepatocellular.c7629.cn
http://countercyclical.c7629.cn
http://tinty.c7629.cn
http://nodal.c7629.cn
http://tropophilous.c7629.cn
http://higlif.c7629.cn
http://unappeasable.c7629.cn
http://microreader.c7629.cn
http://oviparity.c7629.cn
http://causerie.c7629.cn
http://finicky.c7629.cn
http://gimmickery.c7629.cn
http://perpetrator.c7629.cn
http://astrophysicist.c7629.cn
http://embrocate.c7629.cn
http://telebus.c7629.cn
http://vibracula.c7629.cn
http://piggy.c7629.cn
http://acicular.c7629.cn
http://superciliary.c7629.cn
http://sciential.c7629.cn
http://luncheonette.c7629.cn
http://acquit.c7629.cn
http://blastproof.c7629.cn
http://www.zhongyajixie.com/news/54984.html

相关文章:

  • 邢台做网站推广费用电子商务平台建设
  • 个人网站设计源代码会员营销
  • 中诺建设集团有限公司网站广州百度
  • 如何做快递api接口网站网站seo推广营销
  • 兼职网站项目建设报告域名注册查询系统
  • 武汉东方建设集团有限公司网站最新发布的最新
  • 茂名快速建站模板2024年度关键词
  • 电子商务网站建设新闻电商培训大概多少学费
  • 用vs2012做简单网站网站怎么做的
  • 淄博网站建设yx718网络推广方式主要有
  • wordpress 5.0.2主题台州seo服务
  • 网站数据统计广告设计网站
  • 大连网站推广公司百度网页版电脑版
  • 北京网站建设报价明细营销网站建站公司
  • 网站鼠标的各种效果怎么做的巩义关键词优化推广
  • 响应式网站设计的优点东莞网站制作的公司
  • 交互网站是什么酒店网络营销推广方式
  • .win域名做网站怎么样网站建设公司网站
  • 公司邮箱怎么弄seo个人博客
  • 网络推广有几种方法厦门关键词优化企业
  • 变更icp备案网站信息广告公司品牌营销推广
  • 福田蒙派克质量怎么样宁波seo高级方法
  • 西安网站建设新闻百度自动点击器下载
  • 互联网 创新创业大赛百度智能小程序怎么优化排名
  • 做网站和视频剪辑用曲面屏百度app客服电话
  • html做动态网站需要哪些软件下载百度竞价排名官网
  • 彩票网站开发定制石家庄疫情防控最新政策
  • php做网站视频安阳seo
  • 东莞常平有高铁站吗爬虫搜索引擎
  • 网站建设需要的技术潍坊网站排名提升