Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Added topic subscribe and unsubscribe functions to push_v5#1453

Open
nprail wants to merge 2 commits intoionic-team:masterfrom
nprail:patch-1
Open

Added topic subscribe and unsubscribe functions to push_v5#1453
nprail wants to merge 2 commits intoionic-team:masterfrom
nprail:patch-1

Conversation

@nprail
Copy link

@nprail nprail commented Oct 19, 2017

Added the new topic subscribe and unsubscribe functions!

subscribe

$cordovaPushV5.subscribe('my-topic').then(function (res) {
	console.log('success');
}).catch(function (e) {
	console.log('error:', e);
});

unsubscribe

$cordovaPushV5.unsubscribe('my-topic').then(function (res) {
	console.log('success');
}).catch(function (e) {
	console.log('error:', e);
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant