MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mobile Application Notification  (Mono Support )

12702 put(a) pogledan, 6 odgovor(a) 30.11.2014. 22:58:14Kreirao(la) Apocalypse
Apocalypse

Apocalypse

30.11.2014. 22:58:14
Hi there,
How would one implement a notification functionality for native mobile applications. For example if a user (User A) wrote a blog post and another user (User B) commented on that blog post on the ASP.NET site, what event handler can i hook into to trigger a notification to user A's mobile device.

User A will have the mobile application running on his/her mobile device and i already have the method to trigger push notification, i just need pointers on how to hook up this method to the MonoX save even handler

Thanks
Ovaj sadržaj još nije ocijenjen. 
177 Reputacija 14 Ukupno objava
khorvat

khorvat

1.12.2014. 9:21:42
Hi,

you have two ways of doing this:

- Using the WebPart events and hooking to WebPart event

1. Inherit the BlogContainer WebPart
2. on the OnInit event attach the method to BlogPostSaved event handler
3. place your code in method handling the event

Note: in the BlogPostSaved sender is the WebPart if you need to reference to BlogPostEdit part

- Using the Blog BLL and using the IoC pattern (MonoX v5.x only)

1. Inherit from BlogBLL
2. Override the EnsurePostExists
3. place your code in the overridden method
4. create class that inherits BaseMonoXNinjectModule and add the Rebind<IBlogBLL>().To<YourInheritedBLL>(); line

Choose what approach suites you best and get back to us if you have further questions.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Apocalypse

Apocalypse

2.12.2014. 0:41:49
The second approach seems like a more architecturally sound one. I do wonder where the BaseMonoXNinjectModule is  located, i cant seem to find it to inherit.

Thanks

 
Ovaj sadržaj još nije ocijenjen. 
177 Reputacija 14 Ukupno objava
khorvat

khorvat

2.12.2014. 8:06:25
It is located in the MonoX.Common.dll - MonoSoftware.MonoX.Common.DependencyInjection.BaseMonoXNinjectModule

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Apocalypse

Apocalypse

3.12.2014. 6:24:18
Seems like i have version 4.9 so therefore i wont be able to take advantage of the DI/IoC pattern and installing the 5.0 version nightly build seems to be a bit of a challenge since i cannot get it to run despite following the installation instructions. So i guess i have to ask how to upgrade my current version to the 5.0 version if possible?
Ovaj sadržaj još nije ocijenjen. 
177 Reputacija 14 Ukupno objava
khorvat

khorvat

3.12.2014. 8:58:51
Yes, my advise would be to upgrade. You need to unblock the MonoX v5 package downloaded from our site and unzip the package to your current MonoX folder (make sure you have a backup), then you should fix any issues that arise.

Note: Please open a new topic for every upgrade issue that you have as it would be easier to track them.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava