Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update partner-xamarin-notification-hubs-android-get-started.md #1871

Closed
wants to merge 1 commit into from

4 participants

@cesarBere

I might have misunderstood what you are saying but for me the path is

https://HUB-NAMESPACE.servicebus.windows.net/HUB-NAME  

However after a lot of trial and error, the only thing working was giving the hub's name (as HUB-NAME in the path). Also, in the latest azure interface, the hub's name is indicated to be the path (in the quick glance section) which is confusing, that's why I added the comment.

@cesarBere cesarBere Update partner-xamarin-notification-hubs-android-get-started.md
I might have misunderstood what you are saying but for me the path is  

    https://HUB-NAMESPACE.servicebus.windows.net/HUB-NAME  

However after a lot of trial and error, the only thing working was giving the hub's name (as HUB-NAME in the path). Also, in the latest azure interface, the hub's name is indicated to be the path (in the quick glance section) which is confusing, that's why I added the comment.
155dd8e
@mollybostic
Collaborator

Thanks for the update! I've passed it on to the team for review.

@toddreifsteck

It is technically possible to create a notification hub at a path such as https://HUB-NAMESPACE.servicebus.windows.net/PATH/HUB-NAME. In the sample and the new UI, we put PATH/HUB-NAME into a single thing calls a HUB-PATH. This is the reason that the sample uses hub path rather than hub name.

Having explained that, I'd like to hear your feedback on how to make this easier to understand on first approach. What are your thoughts?

@cesarBere

Well I didn't know that we could do it this way (PATH/HUB-NAME), maybe you could specify that there are two ways and choose one of them to follow ? Or explain both ?
Or maybe show a capture with a red annotations (just like the azure creation walkthrough) of where to find the correct info.

But FYI, when I created the Hub, I had never used Azure and just followed the indications. I got the https://HUB-NAMESPACE.servicebus.windows.net/HUB-NAME path and had to work with it, so maybe stick to this path and forget the other one.
If someone gets the PATH/HUB-NAME I guess they set it themselves and should be able to get the correct path !

@tysonn tysonn added the Modern Apps label
@tysonn
Owner

Closing per feedback from article SME.

@tysonn tysonn closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 12, 2014
  1. @cesarBere

    Update partner-xamarin-notification-hubs-android-get-started.md

    cesarBere authored
    I might have misunderstood what you are saying but for me the path is  
    
        https://HUB-NAMESPACE.servicebus.windows.net/HUB-NAME  
    
    However after a lot of trial and error, the only thing working was giving the hub's name (as HUB-NAME in the path). Also, in the latest azure interface, the hub's name is indicated to be the path (in the quick glance section) which is confusing, that's why I added the comment.
This page is out of date. Refresh to see the latest.
View
4 articles/partner-xamarin-notification-hubs-android-get-started.md
@@ -147,7 +147,7 @@ This assembly provides an easy way to register with Azure Notification Hubs. It
// Azure app specific connection string and hub path
public const string ConnectionString = "<Azure connection string>";
- public const string NotificationHubPath = "<hub path>";
+ public const string NotificationHubName = "<hub name>"; // The one you chose when creating the hub, not the path given in azure interface's quick glance
2. Add the following using statements to **MainActivity.cs**:
@@ -454,4 +454,4 @@ In this simple example you broadcast notifications to all your Android devices.
[GitHub]: http://go.microsoft.com/fwlink/p/?LinkId=331329
[Xamarin.Android]: http://xamarin.com/download/
[Azure Mobile Services Component]: http://components.xamarin.com/view/azure-mobile-services/
-[Google Cloud Messaging Component]: http://components.xamarin.com/view/GCMClient/
+[Google Cloud Messaging Component]: http://components.xamarin.com/view/GCMClient/
Something went wrong with that request. Please try again.