Working with Azure notification hub using IONIC 3 - firebase

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).
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.
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.

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.
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.

Related

Can I use Firebase Analytic Web SDK for a Cordova App?

I'm developing a cross platform app: Web, PWA, iOS (Cordova) & Android (Cordova).
I use the same code base, and Firestore & Auth are working well on all the platforms using only the Web SDK.
However, when I add the Firebase Analytic plugin, it works as expected on the Web / PWA, but the iOS / Android apps do not seem to send back anything.
Is there a way to make Analytic works using only the Web SDK? Or is it mandatory to use a Cordova Plugin?
Thank you in advance for your help.
Note: I'm using Framework7 & VueJS
Edit 1
It seems that cordova is officially supported for analytic with the web SDK.
So the question becomes: do you have any idea why the implementation is working for "normal" app and break when on cordova?
https://firebase.google.com/support/guides/environments_js-sdk#other_environments
Edit 2
Now that I know that it should work, I'm trying harder to find solutions.
First, I observed in the Safari Console that on y web app, I can observe calls to https://www.google-analytics.com/g/collect every time I'm logging an event.
I do not observe those calls on the Cordova app, which is most probably the reason why I do not receive anything in my Firebase Analytics.
The question becomes: why are those call not made in cordova, considering the js the same?
Edit 3
Ok, I think I found the explanation:
Google Analytics from a file:// url
The question becomes: since Analytic is loaded automatically with firebase, how can I make this configuration?
Ideally, I would like a way to set the client id using a hash of my user uuid (as I said in my post, I'm using Firebase Auth).
How can I dynamically change the value each time a user connect to the app? Can Firebase directly take care of this?

Which payment gateway should I use for my app (flutter developed)? I'm currently using Firebase as Backend, and flutter for coding

I'm creating an app that works like a food delivery app. Until now all the functionalities are build and working, but to end the project I need to implement the "e-commerce" side. My issue here is what to do since I have a flutter coded application and Firebase as my Backend.
I have already tried Stripe, but it doesn't have support in my country. Now I'm trying with Square, but since it has no integration with Firebase, I would end up with 2 Servers (1 for the payment and 1 for the other stuff), because I would probably have to create a NodeJS server or something similar.
Please go and check for Paystack. They have also packages for flutter so you can choose according to your level of expertise

How to create push notifications using ASP.NET Core 2 web server

First off, my apologies regarding the nature of this question as I am new to the game and trying to help a friend and realized I can't even help myself with this one.
I am having issues creating push notifications and can only use ASP.NET core 2 web server. The issue is sending them from the server, I cannot get that done at all.
Is there anybody who can help me, perhaps send the package or code and if so, if the packages could be live as the ones I have found haven't been committed in over 3 years now.
Any help would be much appreciated, thank you in advance guys.
There are serveral open source NuGet packages available, all with pros and cons. Read the API and sample code before you go with one:
PushSharp is one of the big players, unfortunately it seems no longer maintained. It does not support Apple’s «new» HTTP API and Google’s HTTP V1 API.
dotApns: Perfect support but only nor Apple Push.
Firebase Admin SDK: Far too large, only supports FCM (Android and iOS) but no native/direct iOS support. I didnt like the idea of relaying iOS push messages trough FCM.
So, I went the long way to create my own NuGet package which supports native Android/FCM and Apple/APNS push notifications:
.NET standard library: https://www.nuget.org/packages/PushNotifications.Server
ASP.NET integration: https://www.nuget.org/packages/PushNotifications.Server.AspNetCore

Meteor audio calling

I am building chat app and want to add voice chat feature. I came across webRTC protocol and there is package available for it in Meteor. But I found that it is developed for browsers. So if I used it in my application, I believe it will only work on the browser version.
Is there a way to implement audio calling feature that will work on IOS and Android as well?
For iOS and Android (Cordova), you need to use Cordova or PhoneGap package which implements WebRTC protocol and API.
You can easily google it, for reference take a look on phonertc package. I've used it in a few projects and can confirm what it works inside of Meteor app.

Cross push notifications from Qt to iOS & Android with V-Play (Felgo) and google cloud message (firebase)

I try to create a push notifications project that send to iOS and Android concurrently in the same moment.
I'm going to try V-Play plugin: https://v-play.net/doc/plugin-gcm/
but from guide, I can't find how to set Google Cloud Messaging in Firebase.
There is a tutorial that step by step permit to configure and try the cross platform notifications? Or could anyone see how to set the code correctly?
Also I saw OneSignal, is it better then GCM?
OneSignal is one of the most used push notification services now and a great solution. You can find an integration guide with step-by-step instructions and example code to make it work with Qt & QML here:
https://v-play.net/doc/plugin-onesignal/
The push notifications are available in the Firebase Qt Plugin: https://v-play.net/doc/plugin-firebase/

Resources