Let me explain my problem :
I have a MySQL database (That I launch with WAMP) where I store all my data and a UWP Client application.
I would like to send a notification to the client when my database is updated so the app can reload the data stored inside it's variables.
I've seen some solutions, but i wanted to try to use the Azure Notification Hub to do this project. I created a Notification Hub and an app in the Windows Notification Service.
I successfully sent a notification to myself using the app, but now I would like that the process of sending the notification to be automatic when a trigger in the database is called.
I saw a plugin named SYS-UDF that can lauch commands from SQL using functions like "sys_eval" or "sys_exec".
So i created a console app that I think was able to send a simple push notification. But I encountered a problem : I can't use a console app to launch a push notification, that is because it is not published in the WNS and it can't be published, because it's a console application.
So I'm stuck, here. Is there any other ways to send a notification to Azure Notification Service ?
Thanks in advance for your answers.
Related
This is a console app and I want it to be ale to read the notifications from the Discord app. I want to get info about who I get a message from or from what server and which room, this is all in the notification.
I know how to send notifications from Asp.net server to android app. But what i want to do is to be able send notification form my android app to firebase server when some event happens in my app. Is that possible? If so, how to achieve it?
Thanks in advance.
I am working in Azure notification hub, and the notifications send to the IOS applications. Following ,
https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-ios-apple-push-notification-apns-get-started
But the problem is my IOS application currently using about 1000 users. So the users do not want update his app. The question is - any option to implement Azure notification hub in IOS application without updating the App.? In my hand device Id stored in DB. And also I have certificates.
I think write a console application and add all device id to azure notification hub. Is it possible?
Per my experience, it seems to be not possible to migrate from APNS to Azure Notification Hub for your iOS app without any code changes, because you must have to add the Nofication Hub ListenSharedAccess connect string into your app project. Actually, the architecture migration for your app is from Fig 1 to Fig 2, as below, it will cause necessary code changes. Unless there is some mechanism of hot-patching in your app, but it was not allowed by Apple.
Fig 1.
Fig 2.
Yes, you can register all your existing device tokens with the Notification Hub using the API of your choice. Then have your app back-end register new tokens with the notification hub as they come in.
Just created a project today, added with this references:
https://documentation.onesignal.com/v3.0/docs/windows-phone-sdk-setup
Toasts and Internet Services are enabled.
I've inserted the OneSignal.Init code sample to the OnLaunched event and changed the ID to mine.
My solution associated with store.
Debug/Release mode:
New users successfully registered to my app. (I can check them in the Users menu on my OneSignal Dashboard.)
My problem:
When I'm trying to send a Push Notification to all users, the website(OneSignal) just keep sending. I've tried it on 4 WP emulators, but I didn't get notifications.
Anyway, Microsoft Azure Notification HUB works fine...
Software: VS 2015 with every update installed.
If anyone knows what I've missed, please help me:)
Solved!
On Windows Dev Center -> Your App settings -> Services -> Push Notifications -> WNS/MPNS -> Live Services site!
Generate new Secret Code, and then activate it. (Use it on the Dashboard of Onesignal App Configure)
Onsignal SDK: Using the notificationOpened event is must have!
After that, you can the notification when the app isn't in focus.
To see that while using the app, you should create a local toast notification with the datas from Onesignal event.
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.