tryUseCurrentOrDefaultDistributor static method

Future<bool> tryUseCurrentOrDefaultDistributor()

Try to use the saved distributor else, use the default distributor of the system

Returns Future<true> if we can register to the current or default distributor, else you should ask what the users want to use. The list of installed services can be found with getDistributors

Implementation

static Future<bool> tryUseCurrentOrDefaultDistributor() async {
  return await UnifiedPushPlatform.instance
      .tryUseCurrentOrDefaultDistributor();
}