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

Added topic subscribe and unsubscribe functions to push_v5 #1453

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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