I implemented WNS push notification in my Windows Phone application. And the application are getting the toast notifications successfully.[Sometimes with a delay].
Now toast notification functionality will work only when the user tap it when the application is not open. In any case the user swipe out the notifications form the action center,so the user could not see the missed notifications.
Is there any way or api to get/store those entire toast notification
list in Windows phone ?
I know ToastNotificationHistory class, But where I could see only clear or remove notifications.Please provide me clarification on it is possible or not ?
Also when the device is on low power state, no toast notifications are coming on the device. So the user misses that too. How to handle this case too ?
Please provide me a detailed clarifications on my work around.
related SO question is here
Thanking you all.
Hi asitis, I would like you to know that ToastNotificationFactory's
Clear and Remove methods only apply to those notifications that are
generated by the app itself(local notifications). These methods can not do
what they are saying to those notifications that are coming from WNS
service.
Also You don't have much control over the WNS notifications when
application is closed. They are all handled by user. Like if they
have deleted them or read then they are not available anymore.
May your functionality will be fulfilled by your own server that does
this saving/retrieving notification things. over an endpoint to your
client app. Then you may use Background agents to fetch these
notifications without the user interaction and send the internal
notification to the user from background agent itself.
But background agents are not the good things because they eat the
battery and user can intentionally disable them for all apps. so your
implementation will not be of any use.
So IMO please review your requirement and try to figure out what exactly you need. Also read guidelines of pushnotifications usage I think this => Push Notification Guidelines will definitely help.
Notification Disabling :- for this don't use any client side logic/code because in this case you have to re-publish the client(app) every time your logic changes. So put this logic from where(server) you are sending the notifications. like :- filtering if users..
you can change this filter logic according to your needs in future.
Hope it help you :)
Related
I have Win32 desktop bridge application that uses background task to receive push notifications from WNS. I use UWP background task APIs over C++-WinRT
I'd like to be able to receive push notifications even when OS is in sleep so that it wakes up and the app handles push notification. By default OS does not wake up. It did only after manually changing settings value in System->Battery->See which apps are affecting your battery life->Click my app ->Uncheck Let Windows decide option (by default it is always checked) and check Allow the app to run background taks. Now I'd like to do this is manual work on code for better user experience.
RequestAccessKindAsync API allows to let user to change above setting value by showing popup notification to the user and I could do it without any problem in UWP C# sample app. But same code does not show pop notification from my desktop bridge over C++-WinRT. It simply returns false value for below code
auto result = co_await BackgroundExecutionManager::RequestAccessKindAsync(BackgroundAccessRequestKind::AlwaysAllowed,
L"App needs to use background to catch push notifications while device is in sleep");
Can anyone confirm that RequestAccessKindAsync API works from desktop bridge? If not then how I can make sure OS and the app will always be able to wake up from sleep when it receives push notification?
UPD: Raised request to enable this API from desktop brige here
This is a missing feature. When we designed this API a couple of releases ago we didn't consider desktop bridge apps would be calling it - but clearly there is a use case for supporting this. I have notified the team about this gap, but I'd also encourage you to log a feature request here: https://wpdev.uservoice.com/
Two possible workarounds:
(1) you could add a dummy/empty UWP foreground app to your desktop bridge app. You can then launch this on startup and request the background access from there. This will be a bit ugly, but you could make it look like a splash screen :-)
(2) you can instruct the user to go into the Settings app to set your app to always allowed. You can help them do that with a deep link to the battery save settings, but they will still need to manually flip the switch.
Push notifications for mobile apps allow for some cool possibilities in terms of user experience. Are similar services available for desktop apps, such as those written in C#?
My goal is to push notifications when a value is inserted into the database and to display that on others users screen so everybody it will be updated.
If I do this from database it will take too long to refresh always the database and display information.
I was thinking to send this notifications as JSON.
I read about PubNub but I couldn`t find any example for desktop apps, just mobile.
If you're developing with UWP framework, there is no difference between mobile and desktop modes. Push notifications would appear like any other Win10 notification, at the Action Center expandable area.
Maybe PushBullet can be of help, just know you will then introduce a third-party. PushBullet has a very easy to use API and Nuget-packages.
I have been tasked to add push notification for a web site being developed. Never done one before. I spent a long time googling this and I am not much closer than when I started searching, mostly because most articles describe specific details.
The web application is an intranet app and they are asking for things like when a new report is made available, let the users know about it; or basically any kind of organization/department announcements.
Can someone tell me what are the components involved in developing/deploying this type push notifications? If I know what the pieces are that make this process possible, I can take it from there. I must mention that this web application is being designed to be available on devices (desktop, tablets and phones; if this makes any difference in design/development).
You can try OneSignal Push Notification
in this you can send notifications to websites,android app and ios app
You can also check the documentation for sending notifications to website here
Hope this helps:)
create a server app in vb.net or C#. It'll run on system with turned on bluetooth. If any mobile with turned on bluetooth devices will comes within the system bluetooth signal, it'll send notification automatically. Is this possible to create?
No. It would not work.
APNS
https://developer.apple.com/library/IOs/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
GCM
https://developer.android.com/google/gcm/gcm.html
Push notifications requires to be pushed from Apple's or Google's notifications infrastructures.
For iOS there's local notifications that your app can trigger based on your conditions, but from my knowledge when the Bluetooth connects, your application has to be running and listening for bluetooth changes.
If your app goes into background and got recycled, it would not be able to know when the bluetooth is connected, let alone run your logic to send the notifications.
No this is not possible. Your title asks for "without mobile app". The mobile app on the device is what receives the notification. You create the notification on the server (as shown in #Lee's explanation) and your app decides whether to show it to the user or process data behind the scene.
Assuming we disregard the part about "without mobile app", you CAN do something similar with iBeacons. Department stores use them for targeted notifications in their app. You walk by a certain rack of clothes with an iBeacon and your app shows a notification that that section is 20%.
As an alternative, you might, somehow, also be able to use a service like Twilio which you can TEXT/MMS information (notification) to someone based on some kind of trigger that you define. This would however require that you already have their phone number and some what to identify that they came within your region.
As a whole, being able to notify people within a proximity that haven't done something to subscribe (i.e. download your app, provide contact info) is just plain spammy.
A very straight forward question, but I know there would be no easy answer. I am looking for ideas on how to communicate to Windows Phone 7 back and forth using our application written in c#.
Our purpose is to receive user responses back to application.
Thanks
The simple answer goes something like this...
1) When you need a response, send a push notification to the phone app. This requires the user to opt in to receipt of push notifications for that app.
2) On startup of the phone app, have it query a service to retrieve outstanding information requests. This service will be the phone app's sole means of communicating with the underlying app, so make sure you can do all you need through the service (get and submit data, mainly)
3) Display the required form to gather user input, and submit the values supplied.
Of course, you can make the scenario as complex or as simple as you like - add a count to the push notification (tile) to show the user they have outstanding data entry requirements - in case they miss the toast notification, have a background job that polls for work to complete, that kind of thing, but in my own opinion, a simple push tile notification should give you what you need.
You can use sockets with the latest WP7. http://msdn.microsoft.com/en-us/library/hh202874(v=vs.92).aspx