How to use Parse push notifications using dotnet REST API in Android? - c#

I am new to Android,I am going to develop push notifications using parse.com in my android application,and my REST Api are from Dotnet.I have gone through this link and i am not able to find out from where should i give reference to REST Api.please assist me.

Here is an example how we can Combine Google Cloud Message, ASP.NET Web API and Android Client together. I think the concept is still same when you use other Push Service.

Related

Is it possible to use azure cognitive service on a webapp?

I am a novice in Azure and I am trying to create a web app with a text-to-speech agent using azure resources. So far I have the web app and separatly the voice agent. Do you know if it is possible to bind both so that when I click a button on the web app, the voice agent says something (anything would work for now).
If it is possible, what steps would you follow to achieve that?
I'm using .NET core and C#.
Thanks in advance for the time.
Yes, You can use the Speech Services REST API or SDK. Here are reference docs.
As well as the API reference document: Cognitive Services APIs Reference (microsoft.com)

how to authenticate http requests with Google generated id-token in .net web api back-end?

I have a mobile App in Android that successfully authenticated with Google api returning id-token and also profile information. Now I need to integrate it with my login and registration which I use .net web api as backend. I found google explaind article but not with c# and nuget library and microsoft docs is little difficult to follow. It will be better if i can integrate it with Identity that visual studio provides when creating new project with user authentication generated.
thanks in advance
I resolved my confusion next day after little digging and trying>
Ok first there are two ways of authenticating with third party which i was mixing them and I got confused.
First one in which your application is web or mobile but with web view.
Second way (that I'am using) in which native android activity handle going to google api, so the resulted id-token I manually send it to my api and use this code in c# to verify, requires Google.Apis.Auth library from nuget
var Payload = await GoogleJsonWebSignature.ValidateAsync(idtoken);
See image of steps need to follow in the second way
For more info:
https://youtu.be/zZt8SFivjps
https://developers.google.com/identity/sign-in/android/start-integrating
https://developers.google.com/identity/sign-in/web/backend-auth

Asp.net core push notification to Xamarin (Android, IOS)

I have an asp.net core api for a delivery tracking system that interacts with xamarin.forms mobile app, I want to send push notification for certain events like order is received or cancelled etc...
I'm new to push notifications, I have tried some examples of sending push notification using FireBase and OneSignal, but could not find any examples for sending these push notification using my asp.net core api.
what are the steps i should follow to make that work ? any link for a working example is all i need.
One of the easy ways to implement push notification is to use the Appcenter
https://learn.microsoft.com/en-us/appcenter/sdk/push/xamarin-forms
follow this documentation.
Appcenter also has an API to send the notification so you can integrate it inside your app.
https://learn.microsoft.com/en-us/appcenter/push/pushapi
Hope this helps

Push Notification in Asp.net Webform or mvc using google cloud messaging

How does push notification technology work on Android?
i have read this post on stack over flow, how push notification works on android. Currently, am working on client server application( chat) can i use same push notification in my web client? or can i achieve push notification through google cloud messaging?
thanks in advance.
Well, if you want to get push notification, you will still need to use the Google Cloud Messaging to send the notification using the ASP.NET and C#.
I found this tutorial that can help you on how to integrate a push notification service for Android using ASP.NET and C#. This tutorial has a step by step process that can explain you on how to send push notification including Authentication Process, Server Certification and Send Message. It also contains sample code that you can follow.
For more information, check also this ASP.Net Mobile Push Gateway Tutorial for Realtime Apps

update web application using push notification

I am developing one web application in asp.net 3.5. Now I hv to do push notication with WCF.
I hv successfully developed WCF with callback.
Now my problem arises I cant update web application because the page lifecycle is end.
So please tell me how to update web app.
For further reference plz check this link
Display Messages after getting response from WCF
If it is not possible then wht method should i take. i dont want to use polling because as we except around 800-1000 users are online. so we hv to concerned about the performance as we have only single server.
so plz tell me a good solution and also i want to now how google, yahoo do push notification.
Take a look at the SignalR library. It should get you started in the right direction.
However if you do want to do it yourself, the most efficient method to build this in asp.net is to use a IHttpAsyncHandler and ajax requests.
Here is a complete working project that implements this, along with ajax.

Categories