Answered by:
push notifications using Windows azure mobile services

Question
-
Hi All...
I am trying to send push notifications for Windows 8.1 app using Windows Azure Mobile Services.
I followed the steps mentioned at http://msdn.microsoft.com/en-us/library/windows/apps/dn263182.aspxand it displays notifications whenever the user inserts some data from the UI. For real there time scenario, this would not be appropriate. I found a sample at http://blogs.msdn.com/b/jpsanders/archive/2013/05/24/using-an-existing-azure-sql-table-with-windows-azure-mobile-services.aspx to use existing table for mobile services.
My question is how to call insert.js /update.js scripts (I created in mobile services) whenever there is any insert/update in the table because in the sample, the code for push notificaitons in specified in insert.js file and it gets called whenever data gets inserted into that table. How to achieve the same behavior for the tables whose data is pulled from some other services?
Edit: Can I create a console app and within that call insert.js so that it can display notifications?
Nazia
- Edited by Nazia Firdouse Wednesday, December 4, 2013 12:06 PM
Wednesday, December 4, 2013 10:20 AM
Answers
-
I do not understand what your question is and the other thread answers your question. Please do not post the same question in different threads.
Do you have a new unique question not related to Mobile Service scripts? If so please post a new thread instead of tacking on multiple questions on one forum thread.
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)- Marked as answer by Jeff SandersMicrosoft employee, Moderator Monday, December 9, 2013 3:46 PM
Monday, December 9, 2013 3:46 PMModerator
All replies
-
Hi Nazia,
You are thinking about this incorrectly. You define when you want to send the notification and then call a script in Mobile Services when you want to send the notification. This might be the scheduler or a custom API in mobile services. Mobile Services is a REST interface so you can call it from any code that can issue a HTTPS call to the API.
First: Determine the logic you wish to use as to when how and what gets notified.
Second: Implement this in an db CRUD script, scheduler script or Custom Mobile services API.
PS (the Azure Mobile Services is the Forum you want to ask these questions)
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Wednesday, December 4, 2013 1:32 PM
Wednesday, December 4, 2013 1:32 PMModerator -
- Edited by Nazia Firdouse Monday, December 9, 2013 12:18 PM
Monday, December 9, 2013 12:16 PM -
I do not understand what your question is and the other thread answers your question. Please do not post the same question in different threads.
Do you have a new unique question not related to Mobile Service scripts? If so please post a new thread instead of tacking on multiple questions on one forum thread.
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)- Marked as answer by Jeff SandersMicrosoft employee, Moderator Monday, December 9, 2013 3:46 PM
Monday, December 9, 2013 3:46 PMModerator