getSubscription method

Future<PushSubscription> getSubscription()

Returns a promise that resolves to a PushSubscription details of the retrieved push subscription.

Implementation

Future<PushSubscription> getSubscription() =>
    promiseToFuture<Object, PushSubscription>(
        _callMethod(_delegate, 'getSubscription', []), PushSubscription._);