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.
Related
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.
I am developing an Web App. Its main functionality is
to provide options to get data from different devices and
display them on Dashboard
My Current Flow
When it was started
A device will be sending data
This data from the device will to be placed in Azure Table Storage.
As and when the data gets into Azure the latest received data will be flashing (displayed) in my web app Dashboard.
The app is now getting bigger
we are expecting to get data from more than one device
each device may have same\different parameters & values to send to the Azure
So management of the parameters corresponding to each device too needs to be handled
For all this, its required to make the app manage the devices- like
registering new device,
allow edit\delete of the devices
maintaining the device related parameters
...
...
My Query
In this scenario would the device with IoT Hub serve my cause?
Or Should I make my web app only to manage (add\edit\del..) devices
Or is there any better option in Azure to manage device that send data to be placed on the Azure resource?
Please share your thoughts.
In this scenario would the device with IoT Hub serve my cause?
Device management with IoT Hub can serve you cause. Please refer to Overview of device management with IoT Hub, in this article there is introduction about Azure IoT Hub.
Or Should I make my web app only to manage (add\edit\del..) devices
Or is there any better option in Azure to manage device that send data to be placed on the Azure resource?
The repository of Microsoft Azure IoT SDK for .NET contains IoT service SDKs, you can use this SDK in you web app to manage the devices.The basic features of the tool DeviceExplorer in this repository are similar with your requirements, such as device management, receiving message from devices, sending data to devices by call method on devices. Even though, this tool is a desktop application, you can try to transplant the features in web app.
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.
I need to send this data below to the cloud, I've tried to mix it with a code in IoT Hub called SimulatedDevice, but I Always have some errors.
if (reading.IsValid)
{
this.TotalSuccess++;
this.Temperature = Convert.ToSingle(reading.Temperature);
this.Humidity = Convert.ToSingle(reading.Humidity);
this.LastUpdated = DateTimeOffset.Now;
this.OnPropertyChanged(nameof(SuccessRate));
// this.WriteData();
}
To do that, I've to mix the code above with this code here: IoT-hub C#: get started from azure.microsoft.com.
In my case I've to send temperature an humidity, someone could help? To send this information to the cloud? How could I mix these both.
I'm supposing you're running your app on windows IoT devices(like raspberry pi), so you need to develop UWP app, the reference you provide is for console app, which does not run on windows IoT devices.
There's an nice VS extension called Connected Service for Azure IoT Hub, as below,
After you install it, you can "connect to Azure IoT" Hub in the "Add Connected Service" pop up, all the necessary references will be automatically added, and an AzureIoTHub.cs file is created too.
Note you'll need to add "Windows IoT Extension for the UWP" extension to you project otherwise you'll run into error.
After you are done, you can update the data to your Azure IoT Hub. I have verified it on my raspberry pi 2 with IoT Core 14393.
Alternatively, there's an UWP sample app from azure-iot-sdk github repo, note that you'll need to reference "Windows.Azure.Devices.Client" instead of "Windows.Azure.Devices.Client.WinRT". It also works with my rapberry pi 2.
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.