1
votes

I have integrated the Microsoft App Center push notification feature in one of my UWP apps. Now I'd like to let the user decide if he wants to receive push notifications or not.

According to the SDK I can Enable or disable App Center Push at runtime, but this will not actually disable anything...

disabling the App Center Push in the SDK will NOT stop your application from receiving push notifications.

So, is there even anything I can do?

1

1 Answers

0
votes

Can't seem to find the exact solution but would like to offer the following workarounds:

  • App Center allows to create Audiences to target different segments of app users when sending push notifications. You could create an Audience for those who don't want to receive push notifications and simply avoid them when sending the pushes.
  • There's a way to unregister for push notifications sent from Dev Center. If you used the later instead of App Center to send notifications your problem would be solved.
  • To get pushes from App Center it's required that an app calls AppCenter.Start(...) method on start-up. What if it doesn't?