Web Forms :: Send Push Notification To Android And IOS Phones And Devices Using C#
Jul 17, 2015Looking for some example of implementation of push notification using c# to android and IOS?
View 1 RepliesLooking for some example of implementation of push notification using c# to android and IOS?
View 1 RepliesI am using asp.net c# as server in my project and i want to use push notification in my mobile app...
View 1 RepliesI trying to use apns-csharp library to send push notification from .NET, I created certificate on Apple Provision Portal, download it and convert to p12 format, when i try to load it with code:
private ActionResult SendAlertPushNotification(string appId, string notificationContent, bool useSandBox)
{
NotificationService notificationService = new NotificationService(useSandBox,ApplicationsRepository.GetAPNSCertificateForApplication(appId,useSandBox),"123",1);
notificationService.ReconnectDelay = 2000;
notificationService.Error += new NotificationService.OnError(service_Error);
notificationService.NotificationTooLong += new NotificationService.OnNotificationTooLong(service_NotificationTooLong);
notificationService.BadDeviceToken += new NotificationService.OnBadDeviceToken(service_BadDeviceToken);
notificationService.NotificationFailed += new NotificationService.OnNotificationFailed(service_NotificationFailed);
notificationService.NotificationSuccess += new NotificationService.OnNotificationSuccess(service_NotificationSuccess);...........................
how to solve the AJAX POST problem on ASP NET MVC running on IIS7, basically when you use an Android 2.1 phone and load an ASP NET MVC website on IIS7, and you click on a input button that subsquently makes an AJAX call, you get on a high level, the error window shopwing Error: NETWORK_ERR: XMLHttpRequest Exception 101. I have generated a TempData variable containing some data, and when a RedirectToAction call is made to the controller, the TempData is null. am wondering if anyone has managed to solve this problem at all, and I have searched everywhere but no one seems to know the solution for it.
View 12 RepliesI'm creating a optimized web page for mobile devices with C#. Is there a way to offer a page for larger screens and one for smaller screens on android devices? With Apple i can differentiate between iPad and iPhone, but how can I do this with the galaxy tab or a regular android phone?I don't want to use any javascript in this case.
View 3 RepliesI currently use VS2008 and VS2010 for web applications and would like to start looking at creating apps for both OS'sMajority of the apps will be for myself and wifes phone, so want to play around with what can be done.
View 3 RepliesI want to implement push notification for wp7 so
View 2 Repliesi have deployed a simple chat project using Signalr which is working on desktop website successfully, but when i open the webpage in mobile it is not working at all. does SignalR works in mobile site??
View 1 RepliesI am wondering, is it possible to do push notifications in asp.net web forms?I'm trying to hope to be able to build a mini-chat feature for a corporate web application where by users of the system will use this chat feature to collaborate projects among themselves.
View 2 RepliesI want to send a push notification from a .net client to iphone and ipad devices,how to do this.I have googled to implement this but i could'nt get a proper solution.But I have followed a method in one blog everything went fine while running the code without errors but the message which i have sent from .NET CLIENT are not being delivered to the iphone. URL.....I have followed the steps accordingly in this blog but I couldnt make it work.
View 1 RepliesI need to send an email to notify students that their choices have been approved or disapprove.For example. When a teacher approved or disapprove a particular student choices on the DropDownList in a DetailView it will automatically send the student an email to notify them that the choices had been approved/disapprove. I need to grab the Student Email, ProgramName, student name in the DetailView so the email will be shown like this:
Example:
From: IAP@gmail.com
Subject : <By Default: IAP Choices Notification>
Message:
Hi, <Student_Name>
Your choice for <Program Name> has been approved
Warmest Regards.
How do I start about doing this function?
I have a form in formview which uploads data to my mssql databse fine. I want to send an e-mail after the data is uploaded to supply notification that someone has filled out the form. I am trying to use OnItemInserted to achieve this. This is the error message I get:
Compiler Error Message: CS0122: 'Personal_Loans.ClientappFormView_ItemInserted(object,
System.Web.UI.WebControls.FormViewInsertedEventArgs)' is inaccessible due to its protection level
linked to the line of code for the formview:
<asp:FormView ID="Clientapp" runat="server" DataKeyNames="Key" DataSourceID="ClientData" DefaultMode="Insert" OnItemInserted="ClientappFormView_ItemInserted" >
My code on the page behind is this:
void ClientappFormView_ItemInserted(Object sender, FormViewInsertedEventArgs e)
{
TextBox email = (TextBox)Clientapp.Row.FindControl("email");
DropDownList title = (DropDownList)Clientapp.Row.FindControl("title");
This is then followed by the e-mail sending code. The servers CAS level is set to "full" I have tried using capitals and all lowercase for OnItemInserted I get the same result.
I have this code to send email notification in my page.
MailAddress to = new MailAddress("xxxxx@gmail.com");
MailAddress from = new MailAddress("xxx@gmail.com");
MailMessage message = new MailMessage(from, to);
message.Subject = "Error Occred in the application:";
message.Body = ex.Message;
SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
client.EnableSsl = true;
client.Credentials = new NetworkCredential("user", "password");
Is there any other way we have without giving credentials to send the message?
I need to send notification emails to specific users at different times, Can this be done in the Global.asax page using vb? Also will i have to upgrade my Database from sql express to standard?
View 2 RepliesI have a asp.net Webservice which returns me XML. What should i use in Android and how to parse?
View 3 RepliesI am developing an application for my college principal in which i have an option to send sms to all staff or particular selected staff .. but i dont know how to send sms from aps.net page to mobile phone...
View 1 RepliesIs it possible to upload an image from an Android tablet to a IIS web server in ASP.Net and if so, how?
View 3 RepliesI am new to mobile applications. How to develop a .net web application which will support all the phones like iphone, blackberry etc...For developing this applications what are the softwares we need.
View 6 RepliesIf I have a asp.net site for desktop, what should I do to enable smart phones ?By mistake I added a / to the URL and I noticed that the desktop web site was simple, no buttons, just URL links set to a side.
View 2 RepliesI have read many pages on detecting mobile phones but my question is for setting the screen size for this. I can easily made the screen the same size as my mobile phone but on some devices you still have to zoom in to see it. Is this mainly on the device side that needs to be set? Is there any way to tell the device to show the page zoomed in?
View 10 RepliesIm creating av web applications intended to be used by all kinds of mobile phones. which screen size I should design for?
View 5 RepliesHow to implement push technology in asp.net ...
View 1 RepliesI would like to know if I can write asp.net mvc website that works for all these types of phones: iPhone, Nokia, Blacberry, Palm and Windows
View 5 Repliesi have to select some audio or video files and write to some cd or dvd . is it posible to do this in asp.net
View 7 RepliesI am devloping ASPX pages and I want to prevent caching of pages. So i have used the following code:
<% @OutputCache Location = "None" Duration="1" VaryByParam="none" %>
But this code is working only for the desktop browsers. This is not working in mobile browsers.