I'm Developing Xamarin.forms app for both android and iOS.
and I'm connecting the app with Sql Server DB.
so I need to notifying the apps after a user insert a record using the trigger after insert and that trigger needs to speak with the FCM (Firebase Cloud Messaging) to notify the other users.
I did create a demo for connecting the app with a FCM using this tutorial playlist Implement Push Notifications with FCM and Xamarin.Forms
and I'm also able to make the DB trigger.
but I'm struggling with how to make my sql server speaks to fcm after (trigger after insert) to notify the user.
I apologize if my question seemed naive, but I did a lot of research reading a lot of Docs but I can't figure out how to do this.
so if anyone can suggest a tutorial video or article for this issue it will be appreciated.
Thanks In Advance.
Related
I am building my own app to learn a new skill. I have a database of "Tickets" I just want to be able to press a certain button, which will then send a SQL statement to the DB, and return with all of the tickets it calls for. I understand this can be done with Web Services but that seems like overkill for just viewing a one table. The problem is, I cannot figure out where to put the connection strings to set up the connection. Any help is greatly appreciated, thank you.
so i have a web app and a mobile app, the web app works fine with signalR and SQL, and i'm trying to create an ionic mobile app using the same backend from the web app, so i am a little limited to using signalR as well.
in the web app, i have certain triggers set up to fire popup notifications when certain events occur, and it works great with signalR in the webapp.
the problem is : due to some restrictions i have to use ionic,and i've been searching for 3 days on a way to implement push notifications without having to resort to FCM but i haven't reached anything.
is there a way to do this with ionic 3? to implement push notifications with signalR instead of FCM?
I'm not sure I completely understand your question, but let me see if I can start a dialog.
Ultimately, for push notification, you have to contact both APNS (Apple push notification server) and GCM (Google Cloud Messaging) to enact push notifications on both ios and android phones. So, that means that you can contact the servers directly from your app. (kind of a pain for ios, not so much for android) or you can use a middle man such as:
FCM
Onesignal: https://onesignal.com/
Amazon Simple Notification Service: https://aws.amazon.com/sns/
or a bunch of others: http://www.businessofapps.com/guide/push-notifications/
I'm not familiar with signalR per se... but I'm very familiar with push notification. You can do everything you need with http api calls from signalR, but the certification requirements for the GCM and APNS servers are difficult to keep up on the app itself. (hence so many businesses that will do it for you.)
Although, I guess one thing I'm a little confused about exactly who you are pushing to... a web service? a phone? (I'm assuming a phone since you mentioned FCM)
Edit after first comment:
So, the answer (as I understand your question) is that you cannot go from signalR to a mobile device directly without using something like FCM (which I recommend) or Onesignal.
For Why... Let's start with a diagram:
You'll notice the bidirectional flow from the cloud marked APNS, GCM and FCM between the device. That means that only way to get to the phone via push notification is via APNS, and FCM, which you'll have to do through a push notification service.... such as FCM
Before any confusion sets in, let me point out some important point:
1. FCM and GCM are pretty much synonymous. FCM is the updated version of GCM that added some functionality. more info here
FCM is both a push notification service and the messaging service. That is to say that FCM provides both the services of the gray box and the gray cloud below. As far as I know, there is nothing similar in the ios world that does both. FCM allows you to pass along messages to both android and ios phones (via FCM and APNS)
So, you don't HAVE to go through FCM to do push notifications, but even if you picked OneSignal, they will still communicate with FCM to actually send out the push notification to the phones themselves.
You're doing the right thing by starting in the android world. Push notification is significantly easier there than in ios. (The difficulty lies in the certification process which is easy after you get to know it... but it was tough for me to understand at first)
In short, this is what I would recommend:
1. use ionic native push to communicate with FCM as a push notification service (the gray box)
2. setup FCM so that it can communicate with the APNS servers as well when the time comes.
for ionic native, I'd use their github site for documentation (I'm sure you've already been there) https://github.com/phonegap/phonegap-plugin-push
For setting up FCM, I'd recommend the documentation at the firebase website: https://firebase.google.com/docs/cloud-messaging/
Note: When using firebase products in ionic... choose "web" for all documentations. For example, despite the fact that you're planning on using ios and android phones, you'd pick "get started for web" at this link:
https://firebase.google.com/docs/
Basically I have a mobile app that I am building in Ionic (3 I believe). I have a website that I built a while back in C# using Visual Studio. The site is attached to a SQL Server database. This Ionic app I am creating is to go along with said website.
My question is how do I connect my app to the same database. I'm very new to Ionic and I cannot seem to find any answers online. I have found some vague SQLite stuff but that is about it.
Not necessarily looking for specific answers in code (although I wouldn't say no). If someone could even breakdown the steps I'd need to take then I can go and research it myself.
Thanks in advance
You can connect to mysql database with your ionic app using Webservice in c#.There is no need of SQLite for connecting your app to sql database.It can be used as local storage instead.Ionic use json data to access.So the data you retrieve from Webservice must be Json.
It depends
Do you wish to directly access SQL database from your ionic app or you want to have access to the database via api.
1. Directly connect to SQL database from ionic application using Cordova plugin.
Follow this link for more info -1
We are developing a windows application using WPF, ASP.NET WebAPI & SQL server. For presentation layer, we are using WPF. Data will be stored in SQL database server. All the data communication between client and server is via Web API. In between, we have a facade layer which plays communication between Web API and WPF.
Customer wants this application as offline version for some users who has very limited internet connection.
I mean, users can enter data without internet connection. When user is connected with internet, all the data should be moved to server.
Please share your idea. If anybody done this, please tell us how to do that.
If my question is not clear, or if you need more details on this, I am ready to explain more in detail.
Hey I'm trying to upgrade notifications service that uses task polling to see if there are new messages for a given interval.
My client is a WPF application and WCF in the server side.
I have 2 application servers with windows server 2008 r2 and load balancer between them.
I thought of implementing it with WCF Duplex binding and noticed it will be a problem to manage my users in 2 service instances (since I can subscribe user only to 1 service).
The trigger for sending messages is when data is manipulated by a user and is related to other specific users.
Another important point is that we plan to scrap our wpf application and revise our front end as web project (with angularjs probably..) and our backend from wcf to .net web api.
I read a bit about push techniques and came to this conclusion:
SignalR - the thing is, how will it work with web? (angular.js instead of asp.net)
Wamp - didnt find much about it but it looks promising
Websockets
.NET implementation (requires IIS 8 which means upgrading our servers)
socket.io - simple and great documentation and community. but I'm not familiar with nodejs.
What are your thoughts about how to implement it?
Thanks, Bar