I am using Azure services in my windows phone 8 app to send push notifications and toast notifications by following the steps mentioned here.
However as mentioned in the comments below on the link, HttpNotificationChannel does not have a Uri property, it's ChannelUri, so the code to create a new Registrations object need to be changed.
Could anyone suggest a turnaround or a solution to this bug?
Thanks!
Try
Handle = CurrentChannel.ChannelUri.ToString();
Related
I've set up an Azure Notification Hub and I have gone through all the steps to implement Push Notification into my iOS app. The app has been working fine, receiving the push notifications just like it should. Then today I went to try and send a push from the Azure Portal and it failed.
It seems to be only iOS related though, as the devices that run my app in Android are receiving the Push Notification like they should. I know for a fact I have not changed anything in my code. But instead of getting the Push Notification like I should I now get the following message in Azure portal.
The Push Notification System rejected the request because of an
Invalid Credential.
Any idea about this?
I have just resolved this issue. Just create new APNS certificates and add it to Azure Portal APNS settings. Now it works fine. But Why this is happened I don't understand that. If anyone have idea regarding this then please share it.
If any other solution then please share it here.
Thanks.
This is a potential explanation to your problem.
When you configure APNS into an ANH (Azure Notification Hub), you have the choice between 2 approaches:
Certificate
Token
Of what I understood, you have used "certificate", and APNS certificate expires every year:
https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_certificate-based_connection_to_apns
So maybe, your certificate has expired, and when you created a new one, it has solved your issue.
The other approach with "Token", has the advantage of never expiring.
Regards,
Loic
I have now spent too much time on this issue and still can't seem to fix it.
I have an Azure Bot and I have configured it for Microsoft Teams and Skype.
They do not seem to be working.
The Skype Bot Publish is still 'inReview', I can add the Bot as a contact on skype/teams and when I send a message it is 'Sent' according to Skype, but I do not get a reply.
The Azure Webchat (Test in Webchat) works flawlessly on the Azure Web interface.
There must be something that I'm missing?
Since the last update there does not seem to be an updated how to or explanation to the newly added fields.
When you publish the Skype channel there is an option:
Bot website? What should be put here?
Also on the Calling section:
Webhook (for calling)
Thank you.
More pictures:
I'm quite new on Node.js and without any knowledge on mobile development apps but I would add push notifications into my server app.
On npm I found this module:
https://www.npmjs.com/package/node-pushnotifications
but, after some search and if I understand well, I should have some specific credentials for sending notifications to all devices, first question is: is correct?
Assuming that the answer is yes, are there something to jump this check? Another module, some test credentials or what you want?
I would some generic solution but, if it is not possible, it could be useful also an IOS compatible solution.
This is the best packages for push notification for nodejs:
ios: https://www.npmjs.com/package/apn
android: https://www.npmjs.com/package/node-gcm
APNS is a push notification service for apple(mobile) devices.
You need to integrate SDK's provided by the 'apple developer doc' in your app to integrate push notification services. Then, Once the app installs in the mobile a token will be generated(unique for a specific device).You need to save this token.
From your server side You can send the push notifications to a device with the token that you got.
There is also an SDK to send Push notification from server side.
The best Provider is AWS, you can check this in details by this link
I've set up an Azure Notification Hub and I have gone through all the steps to incorporate Push Notification into my Android app. The app has been working fine, receiving the push notifications just like it should. Then today I went to try and send a push and it failed. So I tried from the Azure Portal and it failed there too.
It seems to be only Android related though, as the devices that run my app in iOS are receiving the Push Notification like they should. I know for a fact I have not changed anything in my code. But instead of getting the Push Notification like I should I now get the following message in Azure portal.
The Push Notification System rejected the request because of an invalid credential
Does anyone have any idea why this would happen? I'm stumped.
I thought at first maybe it was something with my API key (which again I have not changed) so I checked. The Google Cloud Message API Key in the Azure Portal matches what I have in my Google API Console, so it's not that.
What could it be?
Ok, so here is how I fixed my issue:
In Google API Manager I used to only have an api key of type - Android
I created another key of type - Server, and copied that into my azure gcm config, and away she goes... notifications working again
I'm new to Windows Phone development and very new to push notifications.
I'm developing a application for my client which uses the Azure Mobile Services push notification. I read THIS blog and added following code in my App.xaml at the top of the Application_Launching method.
var channel = HttpNotificationChannel.Find("MyPushChannel");
if (channel == null)
{
channel = new HttpNotificationChannel("MyPushChannel");
channel.Open();
channel.BindToShellToast();
}
channel.ChannelUriUpdated += new EventHandler<NotificationChannelUriEventArgs>(async (o, args) =>
{
var hub = new NotificationHub("<hub name>", "<connection string>");
await hub.RegisterNativeAsync(args.ChannelUri.ToString());
});
For the channel name I'm using Device Token. For hub name and connection string I've to ask my client.
But still I'm confuse that how it will get the notification? What are the next steps to receive the notifications? I want to receive the notifications when the app is running in front and back.
Also, I have to navigate to different-2 screens using these notifications.
Please help me.
UPDATE:
I have a Azure Mobile Service provided by the client.
I have the hub and it's connection string.
I wan to receive raw push notifications in my Windows Phone 8.1 silverlight app.
UPDATE
Created a new demo Windows Mobile 8.1 Silverlight app and tried THIS. It worked perfectly. I'm getting the raw notifications in this demo app.
Now I want to know how can I connect it with my client's API i.e. Azure Mobile Service / Hub? Or there is no need to setup a connection between the created channel and AMS/Hub?
In last two days I read a lot on the internet but there is no solution for my problem. Please help me.
Thanks
Kapil
https://msdn.microsoft.com/en-us/library/windows/apps/jj679948.aspx
This is what you need to work with Push notifications in your windows phone 8.1 application