使用IONIC 3使用Azure通知中心 [英] Working with Azure notification hub using IONIC 3

查看:125
本文介绍了使用IONIC 3使用Azure通知中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前正在使用azure通知中心,该中心允许我们同时使用APN和GCM/FCM.推送通知功能可与我们当前的本机应用程序(Android和iOS)正常配合使用.

We are currently using azure notification hub which allows us to work with both APN and GCM/FCM. Push notification functionality works properly with our current native apps (both android and iOS).

现在,我们正在使用IONIC 3开发新的应用程序,现在尝试在同一应用程序中实现推送通知.我们已经阅读了许多文章.其中一些使用ionic 1或ionic2.很少使用IONIC 3不支持的不推荐使用的软件包.

Now we are developing new apps using IONIC 3 and now trying to implement push notification in the same. There are many articles we have gone through. Some of them are using either ionic 1 or ionic 2. Few are using deprecated packages which are not supported on IONIC 3.

后端开发人员使用了变体,其中通知中心是设备注册的中心点.设备直接在通知中心注册,而不是通过我们的后端注册.我们要实现的第一件事是在设备上安装了应用程序并首次运行时在通知中心注册我们的设备.我们没有找到一种方法来做到这一点.我们尝试使用了几个可用的软件包,但是没有用.我们已经在firebase中创建了项目.官方网站具有教程,可用于所有应用程序,其中不包括ionic/cordova.任何建议都将有助于实施.

Backend developers have used the variant where the notification hub is the central point for device registrations. Devices are registered with the notification hub directly, rather than through our back-end. The first thing we are trying to achieve is registering our devices with notification hub when app is installed on device and running it for the first time. We are not finding a way to do it. We tried using couple of packages available but it did not work. We already have created project in firebase. Offical website has tutorial for all applications excpet ionic/cordova. Any suggestions will be helpful for implementing it.

推荐答案

我在"Azure通知中心示例"存储库.它使用第三方Cordova插件来管理注册.该插件处于活动状态,我做出了一些贡献,并且被插件作者接受.

I created an Ionic 3 sample in the Azure Notification Hubs Samples repository a few months ago. It uses a third-party Cordova plugin to manage registration. The plugin is active, I've made a couple of contributions and they were accepted by the plugin author.

我正在研究Ionic 4样本,我将在同一仓库中发布该样本,但是Capacitor的Cordova插件存在问题,并且我没有花足够的时间来弄清楚它.我会尽快尝试.

I'm working on an Ionic 4 sample, which I'll publish in the same repo, but Capacitor has a problem with the Cordova plugin and I've not spent enough time trying to figure it out. I'll try to do so soon.

这篇关于使用IONIC 3使用Azure通知中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆