How to create a Notification Hub just for TESTING in Azure for both Android and iOS










0















I have developed a cross platform app using Xamarin. It receives push notifications via a web API hosted in Microsoft Azure. I currently also have a Notification Hub as a resource hosted in Azure.



The issue is that in order to add more features to the app, I have to also test that the app receives push notifications, but I do not want to send the push notifications from my app troubleshooting process to all the users who already downloaded the app from the store (in production mode) and are using it.



How can I create a separate channel for testing? I am thinking to create another push notification hub with a separate controller method in the web API
that would only send notifications in developer mode. But how exactly can that be achieved.



In iOS the notification hub has a Production/Sandbox switch. I am thinking that by uploading a p12 made with Development certificates I could use send notifications only in development mode on a test device, but that is not the case for Android.



Also aren't notification hubs connected to the package name of the app, so then even in Development/Testing Mode all the users who downloaded the app would receive notifications from the testing in development?



Can I only send notifications in developer mode without changing the package name of the app, via an alternate push notification hub?










share|improve this question



















  • 1





    You can use the TestFlight in iOS

    – Lucas Zhang - MSFT
    Nov 14 '18 at 1:37






  • 1





    Agree with @Lucas Zhang - MSFT, you can refer to the official site for an easy invite to the users to test your app. Use this guide to test your app using "TestFlight". Be noted of the required platforms (iOS apps: iPhone, iPad, or iPod touch running iOS 8 or later. iMessage apps and sticker packs require iOS 10 or later, tvOS apps: Apple TV running tvOS 9 or later) and with an exception for the Mac apps.

    – MαπμQμαπkγVπ.0
    Nov 14 '18 at 11:16











  • Those were good suggestions but I thought of another option, which is to create another Post method in a separate controller that takes an installation id as a parameter and sends message body to specific "installation Id" which would be my development mobile device. And this is while using the same Notification hub used in Production. This way I can test without sending the notifications to everyone using app, what do you guys think of that option?

    – EmilRR1
    Nov 15 '18 at 0:26
















0















I have developed a cross platform app using Xamarin. It receives push notifications via a web API hosted in Microsoft Azure. I currently also have a Notification Hub as a resource hosted in Azure.



The issue is that in order to add more features to the app, I have to also test that the app receives push notifications, but I do not want to send the push notifications from my app troubleshooting process to all the users who already downloaded the app from the store (in production mode) and are using it.



How can I create a separate channel for testing? I am thinking to create another push notification hub with a separate controller method in the web API
that would only send notifications in developer mode. But how exactly can that be achieved.



In iOS the notification hub has a Production/Sandbox switch. I am thinking that by uploading a p12 made with Development certificates I could use send notifications only in development mode on a test device, but that is not the case for Android.



Also aren't notification hubs connected to the package name of the app, so then even in Development/Testing Mode all the users who downloaded the app would receive notifications from the testing in development?



Can I only send notifications in developer mode without changing the package name of the app, via an alternate push notification hub?










share|improve this question



















  • 1





    You can use the TestFlight in iOS

    – Lucas Zhang - MSFT
    Nov 14 '18 at 1:37






  • 1





    Agree with @Lucas Zhang - MSFT, you can refer to the official site for an easy invite to the users to test your app. Use this guide to test your app using "TestFlight". Be noted of the required platforms (iOS apps: iPhone, iPad, or iPod touch running iOS 8 or later. iMessage apps and sticker packs require iOS 10 or later, tvOS apps: Apple TV running tvOS 9 or later) and with an exception for the Mac apps.

    – MαπμQμαπkγVπ.0
    Nov 14 '18 at 11:16











  • Those were good suggestions but I thought of another option, which is to create another Post method in a separate controller that takes an installation id as a parameter and sends message body to specific "installation Id" which would be my development mobile device. And this is while using the same Notification hub used in Production. This way I can test without sending the notifications to everyone using app, what do you guys think of that option?

    – EmilRR1
    Nov 15 '18 at 0:26














0












0








0








I have developed a cross platform app using Xamarin. It receives push notifications via a web API hosted in Microsoft Azure. I currently also have a Notification Hub as a resource hosted in Azure.



The issue is that in order to add more features to the app, I have to also test that the app receives push notifications, but I do not want to send the push notifications from my app troubleshooting process to all the users who already downloaded the app from the store (in production mode) and are using it.



How can I create a separate channel for testing? I am thinking to create another push notification hub with a separate controller method in the web API
that would only send notifications in developer mode. But how exactly can that be achieved.



In iOS the notification hub has a Production/Sandbox switch. I am thinking that by uploading a p12 made with Development certificates I could use send notifications only in development mode on a test device, but that is not the case for Android.



Also aren't notification hubs connected to the package name of the app, so then even in Development/Testing Mode all the users who downloaded the app would receive notifications from the testing in development?



Can I only send notifications in developer mode without changing the package name of the app, via an alternate push notification hub?










share|improve this question
















I have developed a cross platform app using Xamarin. It receives push notifications via a web API hosted in Microsoft Azure. I currently also have a Notification Hub as a resource hosted in Azure.



The issue is that in order to add more features to the app, I have to also test that the app receives push notifications, but I do not want to send the push notifications from my app troubleshooting process to all the users who already downloaded the app from the store (in production mode) and are using it.



How can I create a separate channel for testing? I am thinking to create another push notification hub with a separate controller method in the web API
that would only send notifications in developer mode. But how exactly can that be achieved.



In iOS the notification hub has a Production/Sandbox switch. I am thinking that by uploading a p12 made with Development certificates I could use send notifications only in development mode on a test device, but that is not the case for Android.



Also aren't notification hubs connected to the package name of the app, so then even in Development/Testing Mode all the users who downloaded the app would receive notifications from the testing in development?



Can I only send notifications in developer mode without changing the package name of the app, via an alternate push notification hub?







xamarin.forms push-notification google-cloud-messaging






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 23:10







EmilRR1

















asked Nov 13 '18 at 21:29









EmilRR1EmilRR1

9116




9116







  • 1





    You can use the TestFlight in iOS

    – Lucas Zhang - MSFT
    Nov 14 '18 at 1:37






  • 1





    Agree with @Lucas Zhang - MSFT, you can refer to the official site for an easy invite to the users to test your app. Use this guide to test your app using "TestFlight". Be noted of the required platforms (iOS apps: iPhone, iPad, or iPod touch running iOS 8 or later. iMessage apps and sticker packs require iOS 10 or later, tvOS apps: Apple TV running tvOS 9 or later) and with an exception for the Mac apps.

    – MαπμQμαπkγVπ.0
    Nov 14 '18 at 11:16











  • Those were good suggestions but I thought of another option, which is to create another Post method in a separate controller that takes an installation id as a parameter and sends message body to specific "installation Id" which would be my development mobile device. And this is while using the same Notification hub used in Production. This way I can test without sending the notifications to everyone using app, what do you guys think of that option?

    – EmilRR1
    Nov 15 '18 at 0:26













  • 1





    You can use the TestFlight in iOS

    – Lucas Zhang - MSFT
    Nov 14 '18 at 1:37






  • 1





    Agree with @Lucas Zhang - MSFT, you can refer to the official site for an easy invite to the users to test your app. Use this guide to test your app using "TestFlight". Be noted of the required platforms (iOS apps: iPhone, iPad, or iPod touch running iOS 8 or later. iMessage apps and sticker packs require iOS 10 or later, tvOS apps: Apple TV running tvOS 9 or later) and with an exception for the Mac apps.

    – MαπμQμαπkγVπ.0
    Nov 14 '18 at 11:16











  • Those were good suggestions but I thought of another option, which is to create another Post method in a separate controller that takes an installation id as a parameter and sends message body to specific "installation Id" which would be my development mobile device. And this is while using the same Notification hub used in Production. This way I can test without sending the notifications to everyone using app, what do you guys think of that option?

    – EmilRR1
    Nov 15 '18 at 0:26








1




1





You can use the TestFlight in iOS

– Lucas Zhang - MSFT
Nov 14 '18 at 1:37





You can use the TestFlight in iOS

– Lucas Zhang - MSFT
Nov 14 '18 at 1:37




1




1





Agree with @Lucas Zhang - MSFT, you can refer to the official site for an easy invite to the users to test your app. Use this guide to test your app using "TestFlight". Be noted of the required platforms (iOS apps: iPhone, iPad, or iPod touch running iOS 8 or later. iMessage apps and sticker packs require iOS 10 or later, tvOS apps: Apple TV running tvOS 9 or later) and with an exception for the Mac apps.

– MαπμQμαπkγVπ.0
Nov 14 '18 at 11:16





Agree with @Lucas Zhang - MSFT, you can refer to the official site for an easy invite to the users to test your app. Use this guide to test your app using "TestFlight". Be noted of the required platforms (iOS apps: iPhone, iPad, or iPod touch running iOS 8 or later. iMessage apps and sticker packs require iOS 10 or later, tvOS apps: Apple TV running tvOS 9 or later) and with an exception for the Mac apps.

– MαπμQμαπkγVπ.0
Nov 14 '18 at 11:16













Those were good suggestions but I thought of another option, which is to create another Post method in a separate controller that takes an installation id as a parameter and sends message body to specific "installation Id" which would be my development mobile device. And this is while using the same Notification hub used in Production. This way I can test without sending the notifications to everyone using app, what do you guys think of that option?

– EmilRR1
Nov 15 '18 at 0:26






Those were good suggestions but I thought of another option, which is to create another Post method in a separate controller that takes an installation id as a parameter and sends message body to specific "installation Id" which would be my development mobile device. And this is while using the same Notification hub used in Production. This way I can test without sending the notifications to everyone using app, what do you guys think of that option?

– EmilRR1
Nov 15 '18 at 0:26













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53289764%2fhow-to-create-a-notification-hub-just-for-testing-in-azure-for-both-android-and%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53289764%2fhow-to-create-a-notification-hub-just-for-testing-in-azure-for-both-android-and%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3