Sending Azure Push Notifications to Production Apps Through Azure Portal - azure-notificationhub

I set up the Azure environment, with the Notifications Hub and a Mobile Backend. It works perfectly and simply with the "Test Send" feature, where I receive a notification on my phone, and can dismiss it or click on it to open the app. All I am looking for is a feature similar to this, but with production capabilities. I don't want to setup more infrastructure, and write all this code, just to send the most basic of push notifications, so I am wondering how this may be done in the Microsoft Azure portal? Thanks!
Edit 1: to anyone struggling with the same problem, Microsoft also offers a service called Visual Studio App Center, which has the extavt functionality I desired, and is super easy to implement. For some reason it was listed very highly during my searches, so I never knew it existed.

I am afraid that there is ony "Test Send" feature in Azure portal. You need to accomplish this by using code or rest api. Normally, you would send notifications using a backend server. For some cases, you might want to be able to send push notifications directly from the client application.

Related

Which application mode should I use in Azure Notification Hubs for Testflight betas?

I am using Azure Notification Hubs for sending notifications.
It worked fine when I tried it a few times on my development iOS device.
But now I want to distribute the app to testers via iTunes Connect / Test Flight and the notifications have stopped working.
I am unsure as to which application mode in Azure Notification Hubs that is the correct to use with Test Flight betas? Sandbox or Production?
I have tried both without any luck.
This is for a Xamarin Forms app and I am using V4 of the Azure Mobile Client. Is there anywhere I need to disable sandbox mode in the app itself?
I am currently registering using this bit of code:
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
if (deviceToken != null)
App.Client.GetPush().RegisterAsync(deviceToken);
}
So it started working "by itself" after a little while.
I chose Production for the Test Flight betas and there was no notifications coming through.
After waiting an hour or so it seemed to fix itself - now notifications are coming through just fine.
So maybe the lesson is when you change from Sandbox to Production you need to wait a bit before things work again.

Is a server required for push notifications?

Just to start I, I want to say I have read the this tutorial: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
After reading it, had a few questions about push notifications... my main questions is, is a server required.
I have made an app that has informational content for my business... however every week/month or whenever I choose, I want to be able to push a message to all the user who have downloaded my app (every device would receive the same message).
Preferably, the way I would want to create and send the notifications... is through a separate app that I, the developer only has.
Now back to my question, would I need to get a server to do this?
There are a lot of free Push Notification servers - for example QuickBlox
You don't need any server code, QuickBlox already wrote all for you.
Just look at Push Notifications iOS sample - This sample enables you to send notifications and alerts to users at any time through an API or easy-to-use admin panel.
Just download it, move some code from it to your app - and enjoy it.
We use a framework called Parse that let's us send broadcast pushes to all users. You don't need to maintain a server (they do it for you). It's free for under 5 million queries a month.
No you dont need a server, you can simply create your own application that connects to the apple push notification server but you have to ensure you use the required develop/publish certificate for the ssl connection, you can see that on the tutorial you read in the "Making a PEM file" secction. He is connecting directly from his mac to the servers, it fails without the certificate but it doesnt with it.
See here:
As I’ve mentioned a few times before, you need to set up a server that
sends the push notifications to your app. For this first test, we’re
not going to set up a server just yet. Instead, I’ll give you a very
simple PHP script that sets up a connection to APNS and sends a push
notification to a device token that you specify. You can run this
straight from your Mac.
You can make your program set up a connection like that.

Is there possible make push notification without APNS

I need to know if its possible to make push notifications without use the APNS.
And if it can be done, what are the best options?
Web server ->pushNotification-> Device
What about the VoIP apps? --> Can we push notification without using APNs?
Thanks.
No, there is no way to use Push notification without APNS. This is restriction from Apple and is documented here
No you can not push notification to a device without using Apple's push notification service.
It is not possible to display push notifications for your application in the same way that the built in push notifications appear without using the Apple Push Notification Service.
You may be able to set up some kind of web socket-based solution, but that will not work when your app is in the background, thus defeating the point.
Check out Urban Airship
Push Composer makes sending Push Notifications simple for anyone in your organization. By putting the power of engagement into the hands of your business team, you can empower them to reach your customers quickly without adding strain on your engineering team. And because you can preview your message as you write it, you’ll know exactly how your users will see and engage with your message.

How to use Push Notifications

Regarding push notifications. How do I get the provision from APNS to implement push notifications in to my application. Help me guys.
start from these series
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
iOS developers love to imagine users of their awesome app using the app all day, every day. Unfortunately, the cold hard truth is that users will sometimes have to close the app and perform other activities. Laundry doesn’t fold itself, you know :]
Happily, push notifications allow developers to reach users and perform small tasks even when users aren’t actively using an app!
Push notifications have become more and more powerful since they were first introduced. In iOS 9, push notifications can:
Display a short text message
Play a notification sound
Set a badge number on the app’s icon
Provide actions the user can take without opening the app
Be silent, allowing the app to wake up in the background and perform a task
This push notifications tutorial will go over how push notifications work, and let you try out their features...
I followed the steps mentioned in raywenderlich tutorial. It's some what easy to send Push notifications to my iPhone app by using my system as the temporary server(ie, sending the message by running the PHP code from the Terminal window).
But, while going for production and dynamic messages for different users at different time, it's very tough for me to set the service in a server.
So, I go with third party server to send Push Notifications. - Parse.com
Tutorial for how to use that API.
Documentation about the installations of the application.
Here, we have a tag parse.com for questions about this process.

Push notification guide?

i need a rundown on how to fully utilise the push notification system. Iv read the push notification guide on the apple website but still unclear of some things.
Lets say i have a windows PC and an iPad.
1) what should the PC be configured with to become a "provider"? Should it be configured to be like a server, giving out data upon requests.
2) How does the provider send the token to the APNs?
The reason for using the push notification system is so that i can invoke a (tablereload data) method so that it would update the table as it has some custom images added as its subview so it would change images if some conditions in the server side were met.
Thanks for reading guys , hoping for any kind of feedback or help.
Cheers, Ephist
For anything other than development and testing, you'll generally want to run the provider on a server infrastructure that's not hosted on a home Windows machine.
You can either use a commercial provider like iLime or Urban Airship, but there's also a few tutorials and open source solutions out there:
EasyAPNS (Push notifications using PHP & MySQL)
How to build an Apple Push Notification provider server (tutorial)
PHP Apple Push Notification Server
Programming Apple Push Notification Services (contains details on certificate configuration)
There's also a local test app for Mac OS called PushMeBaby that you can use for development purposes.
There's is one more interesting tutorial here: http://mobiforge.com/developing/story/programming-apple-push-notification-services
show here.
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
Above Link Dead...try this
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/Introduction.html
There's other solutions like Xtify or Mainline or PushWoosh or more recently Windows Cloud Azur.
Easy APN stay the most relevant solution for those who choice to do it yourself (servers integration).