question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dont recive push notifications

See original GitHub issue

Hi, I 'm trying to get notifications on a test application to find out first as implimentarlo and then apply it to my application that is almost over .

I followed these steps

  1. http://docs.ionic.io/setup.html#installation
  2. http://docs.ionic.io/services/push/
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title>Probando notificaciones</title>

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">


    <script src="lib/ionic/js/ionic.bundle.js"></script>
    <script src="lib/ionic.cloud.min.js"></script>

    <script src="cordova.js"></script>

    <script src="js/app.js"></script>

</head>

<body ng-app="starter">

    <ion-pane>
        <ion-header-bar class="bar-stable">
            <h1 class="title">Ionic Blank Starter</h1>
        </ion-header-bar>
        <ion-content>
            <div class="list list-inset" ng-controller="pushCtrl">
                <button class="button button-block button-assertive" ng-click="mostrar()">Mostrar</button>
            </div>

        </ion-content>
    </ion-pane>
</body>

</html>

angular.module('starter', ['ionic', 'ionic.cloud'])

.run(function($ionicPlatform, $ionicPush) {
        $ionicPlatform.ready(function() {

            if (window.cordova && window.cordova.plugins.Keyboard) {

                cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
                cordova.plugins.Keyboard.disableScroll(true);
            }

            if (window.StatusBar) {
                StatusBar.styleDefault();
            }

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

        });

    })
    .config(function($ionicCloudProvider) {
        $ionicCloudProvider.init({
            "core": {
                "app_id": "1fec09ac"
            },
            "push": {
                "sender_id": "1038915667657",
                "pluginConfig": {
                    "ios": {
                        "badge": true,
                        "sound": true
                    },
                    "android": {
                        "iconColor": "#343434"
                    }
                }
            }
        });
    })

.controller('pushCtrl', function($scope, $ionicPush) {

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

});

question in the forum link

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jgw96commented, Sep 1, 2016

Hello, since this was an issue with Ionic cloud I have moved this issue to the appropriate repo. Thanks!

0reactions
PterPmntacommented, Sep 1, 2016

@jgw96 thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Notifications Not Showing Up? 10 Fixes You Can Try
Android Notifications Not Showing Up? 10 Fixes You Can Try · 1. Reboot Your Phone · 2. Review the App's Notification Settings ·...
Read more >
How to Fix Notifications Not Showing up on Android - Lifewire
How to Fix No Notifications on Android · Check That Do Not Disturb is not enabled. · Restart your phone. · Make sure...
Read more >
5 ways to fix iPhone notifications when you're not receiving them
Sometimes, the reason you're not getting notifications could simply be that you somehow turned them off. Here's how to double-check your ...
Read more >
Why Some Users Don't Receive Push Notifications? [with ...
1. Notifications can be blocked by User at OS Level: · 2. Device-specific issues: · 3. User Not connected to GCM due to...
Read more >
Why am I not getting ClassCover Booking Push Notifications ...
Why am I not getting ClassCover Booking Push Notifications on my Android phone? · Settings > Sounds & Vibration > Do Not Disturb:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found