Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49190

Open a page when clicking push notification

$
0
0

@xyz_sk wrote:

I have created a push notification app.The push notification is working properly.But On clicking the notification i have to open a particular page.

   $ionicPush.register().then(function(t) {
            $localstorage.setObject('token', t.token)
            console.log('Token saved:', t.token);
        });

this is the code i am using to save token.Iam receiving the push notifcations with this.

$scope.$on('cloud:push:notification', function(event, data) {
   var msg = data.message;
  alert(msg.title + ': ' + msg.text);});

Tried using this code .but it is not working

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>