Reputation: 2529
I can't seem to control AppCenter when to ask for push permissions. As soon as I'm invoking AppCenter.Start(..., typeof(Push));
it immediately asks for the permission. I also tried to disable Push before invoking Start by Push.SetEnabledAsync(true);
but that didn't help. Any idea how can I do that?
Upvotes: 0
Views: 110
Reputation: 5099
The official documentation here, has a section for this question:
Can I delay showing the Push Notifications permission pop-up until the user click a button or a certain screen?
Basically, you initialize AppCenter at the start of your app
AppCenter.Start("{KEY}", typeof(Analytics), typeof(Crashes));
And then after login, you can just call
AppCenter.Start(typeof(Push));
Upvotes: 2
Reputation: 46
One solution is to work with conditionals when implementing the app center .start.
Upvotes: 0