简体   繁体   English

推送通知未在移动应用上显示

[英]Push notification not getting on mobile app

I m using cordova 8.0 now. 我现在正在使用cordova 8.0。 Beforei was using6.5 . Beforei正在使用6.5。 when I m using 6.5 im getting push notification properly. 当我使用6.5 im正确获取推送通知时。 Now i have updated cordova 8.0.0 after that i have installed firebase analystics and phonegap push plugin. 现在,我已经更新了cordova 8.0.0,然后安装了Firebase分析工具和phonegap推送插件。

I have installed all plugins updated google-services.json file, updated config.xml file. 我已经安装了所有插件,更新了google-services.json文件,更新了config.xml文件。 This is messenger related mobile app 这是与Messenger相关的移动应用

After that test notification on firebase console im getting. 之后,在Firebase控制台上即时收到测试通知。 but my app have messenger is there. 但我的应用程序有Messenger。 If im sending message to messenger i got in inside app. 如果我正在向Messenger发送消息,我会进入内部应用程序。 But push notification im not getting. 但推送通知即时通讯没有得到。

This issue on cordova 8 verison only. 仅在cordova 8版本上存在此问题。 config.xml updated like this config.xml像这样更新

     <plugin name="phonegap-plugin-push" spec="^2.1.3">
      <variable name="SENDER_ID" value="1:954650986639:android:135d209282da2c19" />
      <variable name="FCM_VERSION" value="11.6.2" />
    </plugin>
<platform name="android">
    <allow-intent href="market:*" />
    <resource-file src="google-services.json" target="app/google-services.json" />
</platform>

Any one suggest me wantto update any other config! 任何人建议我要更新任何其他配置!

Google-services.json file gerenrate one project number. Google-services.json文件使一个项目编号生效。 That number update your project senderID. 该号码将更新您的项目senderID。 It will work properly. 它会正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM